Package org.apache.commons.jcs3.admin
Class CountingOnlyOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.jcs3.admin.CountingOnlyOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Keeps track of the number of bytes written to it, but doesn't write them anywhere.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush
-
Constructor Details
-
CountingOnlyOutputStream
public CountingOnlyOutputStream()
-
-
Method Details
-
write
count as we write.- Overrides:
writein classOutputStream- Parameters:
b-- Throws:
IOException
-
write
count as we write.- Overrides:
writein classOutputStream- Parameters:
b-off-len-- Throws:
IOException
-
write
count as we write.- Specified by:
writein classOutputStream- Parameters:
b-- Throws:
IOException
-
getCount
The number of bytes that have passed through this stream.- Returns:
- int
-