java.lang.Object |
↳ |
java.io.OutputStream |
|
↳ |
java.io.FilterOutputStream |
|
|
↳ |
com.facebook.common.internal.CountingOutputStream |
Class Overview
An OutputStream that counts the number of bytes written.
Summary
[Expand]
Inherited Fields |
From class
java.io.FilterOutputStream
protected
OutputStream |
out |
|
|
Public Constructors |
|
CountingOutputStream(OutputStream out)
Constructs a new FilterOutputStream with out as its target stream.
|
Public Methods |
void
|
close()
|
long
|
getCount()
Returns the number of bytes written.
|
void
|
write(byte[] b, int off, int len)
|
void
|
write(int b)
|
[Expand]
Inherited Methods |
From class
java.io.FilterOutputStream
void
|
close()
|
void
|
flush()
|
void
|
write(byte[] arg0)
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
void
|
write(int arg0)
|
|
From class
java.io.OutputStream
void
|
close()
|
void
|
flush()
|
void
|
write(byte[] arg0)
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
abstract
void
|
write(int arg0)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
java.io.Closeable
|
From interface
java.io.Flushable
|
From interface
java.lang.AutoCloseable
|
Public Constructors
public
CountingOutputStream
(OutputStream out)
Constructs a new FilterOutputStream
with out
as its target stream.
Parameters
out |
the target stream that this stream writes to.
|
Public Methods
public
long
getCount
()
Returns the number of bytes written.
public
void
write
(byte[] b, int off, int len)
public
void
write
(int b)