Package com.identityworksllc.iiq.common
Class NullInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.identityworksllc.iiq.common.NullInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class NullInputStream extends InputStream
An input stream primarily for testing purposes that always contains the given number of zeroes.
-
-
Constructor Summary
Constructors Constructor Description NullInputStream()
NullInputStream(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
NullInputStream
public NullInputStream()
-
NullInputStream
public NullInputStream(int size)
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
-