Deprecated
| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | count(final long
the number of bytes written written)Increments the counter of already written bytes. |
| public long | Returns: the number of written bytesReturns the current number of bytes written to this stream. |
| public void | write(final byte[]
the data to be written. b)Overrides java. b.length bytes to this output stream.
|
| public void | write(final byte[]
the data. b, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. len bytes from the specified
byte array starting at offset off to
this output stream.
|
| public void | write(final int
the b)byte.Overrides java. byte to this output stream.
|
| bytesWritten | back to summary |
|---|---|
| private long bytesWritten | |
| CountingOutputStream | back to summary |
|---|---|
| public CountingOutputStream(final OutputStream out) | |
| count | back to summary |
|---|---|
| protected void count(final long written) Increments the counter of already written bytes. Doesn't increment if the EOF has been hit (written == -1)
| |
| getBytesWritten | back to summary |
|---|---|
| public long getBytesWritten() Returns the current number of bytes written to this stream.
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Overrides java. Doc from java. Writes the specified
The
Implements the abstract
| |