|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
net.jxta.util.CountingOutputStream
public class CountingOutputStream
A filter output stream which counts the bytes sent to the stream. A filter so that you don't have to count seperately from writing to the output
Field Summary |
---|
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
CountingOutputStream(OutputStream out)
Creates a new instance of CountingOutputStream |
Method Summary | |
---|---|
long |
getBytesWritten()
Returns the number of bytes written to the stream thus far. |
String |
toString()
Debugging toString. |
void |
write(byte[] b,
int off,
int len)
calls the super version of the same method. |
void |
write(int b)
Merely calls the super version. |
Methods inherited from class java.io.FilterOutputStream |
---|
close, flush, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CountingOutputStream(OutputStream out)
Method Detail |
---|
public String toString()
toString
in class Object
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public long getBytesWritten()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |