phelps.io

Class OutputStreamCount

public class OutputStreamCount extends FilterOutputStream

OutputStream that counts the number of bytes written to it.

Version: $Revision: 1.2 $ $Date: 2003/08/17 14:23:16 $

Constructor Summary
OutputStreamCount(OutputStream out)
Method Summary
voidreset()
Resets count of number of bytes written to stream to 0.
longsize()
Returns count of number of bytes written to stream.
voidwrite(byte[] b)
voidwrite(byte[] b, int off, int len)
voidwrite(int b)

Constructor Detail

OutputStreamCount

public OutputStreamCount(OutputStream out)

Method Detail

reset

public void reset()
Resets count of number of bytes written to stream to 0.

size

public long size()
Returns count of number of bytes written to stream.

write

public void write(byte[] b)

write

public void write(byte[] b, int off, int len)

write

public void write(int b)