Deprecated
| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| public long | Returns: the number of read bytesReturns the current number of bytes read from this stream. |
| public int | |
| public int | read(final byte[]
the buffer into which the data is read. b)Overrides java. b.length bytes of data from this
input stream into an array of bytes.
|
| public int | read(final byte[]
the buffer into which the data is read. b, final int the start offset in array off, final int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from this input stream
into an array of bytes.
|
| bytesRead | back to summary |
|---|---|
| private long bytesRead | |
| CountingInputStream | back to summary |
|---|---|
| public CountingInputStream(final InputStream in) | |
| count | back to summary |
|---|---|
| protected final void count(final long read) Increments the counter of already read bytes. Doesn't increment if the EOF has been hit (read == -1)
| |
| getBytesRead | back to summary |
|---|---|
| public long getBytesRead() Returns the current number of bytes read from this stream.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b) throws IOException Overrides java. Doc from java. Reads up to
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Reads up to
| |