jxUtil 0.6

org.sourceforge.jxutil.io
Class CountingOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--org.sourceforge.jxutil.io.CountingOutputStream

public final class CountingOutputStream
extends FilterOutputStream

Count bytes written.


Field Summary
(package private)  long mark
           
(package private)  long written
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
CountingOutputStream(OutputStream out)
           
 
Method Summary
 long tell()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mark

long mark

written

long written
Constructor Detail

CountingOutputStream

public CountingOutputStream(OutputStream out)
Method Detail

tell

public long tell()

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterOutputStream
IOException

write

public void write(int b)
           throws IOException
Overrides:
write in class FilterOutputStream
IOException

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.