| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| public | CountingOutputStream(OutputStream
the output stream to be wrapped out)Wraps another output stream, counting the number of bytes written. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public long | |
| public void | write(byte[]
the data. b, int the start offset in the data. off, 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(int
the b)byte.Overrides java. byte to this output stream.
|
| count | back to summary |
|---|---|
| private long count | |
| CountingOutputStream | back to summary |
|---|---|
| public CountingOutputStream(OutputStream out) Wraps another output stream, counting the number of bytes written.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources associated with the stream.
| |
| getCount | back to summary |
|---|---|
| public long getCount() Returns the number of bytes written. | |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Overrides java. Doc from java. Writes the specified
The
Implements the abstract
| |