java.lang.Object
java.io.OutputStream
org.apache.wicket.util.io.ByteCountingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Output stream that counts bytes written to it (but discards them).
- Author:
- Jonathan Locke
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
Constructor Details
-
ByteCountingOutputStream
public ByteCountingOutputStream()
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
- See Also:
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
- See Also:
-
size
- Returns:
- Number of bytes written to this stream
-