Package com.pnfsoftware.jeb.util.io
Class DummyInputStream
java.lang.Object
java.io.InputStream
com.pnfsoftware.jeb.util.io.DummyInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Dummy reader class: all read operations return 0, and the number of bytes being read is tracked.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
DummyInputStream
public DummyInputStream()
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
getTotalSize
public long getTotalSize()Get the number of bytes read.- Returns:
-