org.gjt.jclasslib.io
Class CountedOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.gjt.jclasslib.io.CountedOutputStream
- public class CountedOutputStream
- extends FilterOutputStream
OutputStream which counts the number of bytes written.
- Version:
- $Revision: 1.4 $ $Date: 2004/12/28 13:04:31 $
- Author:
- Ingo Kegel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountedOutputStream
public CountedOutputStream(OutputStream out)
- Constructor.
- Parameters:
out
- the output stream.
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