|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
net.jxta.util.CountingInputStream
public class CountingInputStream
A filter input stream which counts the bytes read from the stream. A filter so that you don't have to count seperately from reading from the inoput
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
CountingInputStream(InputStream in)
Make a new Counting Input Stream |
Method Summary | |
---|---|
long |
getBytesRead()
Returns the number of bytes read fromthe stream thus far. |
int |
read()
Merely calls the super version. |
int |
read(byte[] b,
int off,
int len)
calls the super version of the same method. |
String |
toString()
Debugging toString. |
Methods inherited from class java.io.FilterInputStream |
---|
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CountingInputStream(InputStream in)
Method Detail |
---|
public String toString()
toString
in class Object
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long getBytesRead()
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |