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 SummaryConstructors
- 
Method SummaryMethods inherited from class java.io.OutputStreamclose, flush
- 
Constructor Details- 
CountingOnlyOutputStreampublic CountingOnlyOutputStream()
 
- 
- 
Method Details- 
writecount as we write.- Overrides:
- writein class- OutputStream
- Parameters:
- b-
- Throws:
- IOException
 
- 
writecount as we write.- Overrides:
- writein class- OutputStream
- Parameters:
- b-
- off-
- len-
- Throws:
- IOException
 
- 
writecount as we write.- Specified by:
- writein class- OutputStream
- Parameters:
- b-
- Throws:
- IOException
 
- 
getCountThe number of bytes that have passed through this stream.- Returns:
- int
 
 
-