Package i2p.susi.util
Class CountingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
i2p.susi.util.CountingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
An OutputStream that counts how many bytes are written
and returns the count via getWritten().
- Since:
- 0.9.34
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterOutputStream
close, flush, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
CountingOutputStream
-
-
Method Details
-
getWritten
public long getWritten() -
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-