Package com.globalmentor.io
Class EmptyInputStream
java.lang.Object
java.io.InputStream
com.globalmentor.io.EmptyInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An input stream that has no content.
- Author:
- Garret Wilson
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, reset
-
Constructor Details
-
EmptyInputStream
public EmptyInputStream()
-
-
Method Details
-
read
This version always returns -1.- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
This version always returns -1.- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
This version always returns -1.- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
This version always returns 0.- Overrides:
skip
in classInputStream
- Throws:
IOException
-