Package net.markenwerk.commons.nulls
Class NullInputStream
- java.lang.Object
-
- java.io.InputStream
-
- net.markenwerk.commons.nulls.NullInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class NullInputStream extends InputStream
ANullInputStream
is anInputStream
that does nothing.- Since:
- 1.0.0
- Author:
- Torsten Krause (tk at markenwerk dot net)
-
-
Constructor Summary
Constructors Constructor Description NullInputStream()
Creates a newNullInputStream
.
-
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()
Creates a newNullInputStream
.
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
-