ej-technologies

org.gjt.jclasslib.io
Class CountedOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byorg.gjt.jclasslib.io.CountedOutputStream

public class CountedOutputStream
extends FilterOutputStream

OutputStream which counts the number of bytes written.

Version:
$Revision: 1.3 $ $Date: 2003/08/18 07:58:12 $
Author:
Ingo Kegel

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
CountedOutputStream(OutputStream out)
          Constructor.
 
Method Summary
 int getBytesWritten()
          Get the number of bytes written.
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountedOutputStream

public CountedOutputStream(OutputStream out)
Constructor.

Parameters:
out - the output stream.
Method Detail

write

public void write(int b)
           throws IOException
Throws:
IOException

getBytesWritten

public int getBytesWritten()
Get the number of bytes written.

Returns:
the number of bytes

ej-technologies