Package com.pnfsoftware.jeb.util.io
Class DummyOutputStream
java.lang.Object
java.io.OutputStream
com.pnfsoftware.jeb.util.io.DummyOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Dummy writer class: does not write, simply count the number of bytes being written.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Constructor Details
-
DummyOutputStream
public DummyOutputStream()
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
getTotalSize
public long getTotalSize()Get the number of bytes written.- Returns:
-