Java org.apache.commons.io.output CountingOutputStream fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.io.output CountingOutputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.io.output CountingOutputStream.

The text is from its open source code.

Subclass

org.apache.commons.io.output.CountingOutputStream has subclasses.
Click this link to see all its subclasses.

Constructor

CountingOutputStream(OutputStream out)
Constructs a new CountingOutputStream.

Method

voidclose()
Invokes the delegate's close() method.
voidflush()
Invokes the delegate's flush() method.
longgetByteCount()
The number of bytes that have passed through this stream.
intgetCount()
The number of bytes that have passed through this stream.
intresetCount()
Set the byte count back to 0.
voidwrite(byte[] b)
Writes the contents of the specified byte array to this output stream keeping count of the number of bytes written.
voidwrite(int b)
Writes a single byte to the output stream adding to the count of the number of bytes written.
voidwrite(byte[] b, int off, int len)
Writes a portion of the specified byte array to this output stream keeping count of the number of bytes written.