Package org.apache.tika.io
Class ClosedInputStream
java.lang.Object
java.io.InputStream
org.apache.tika.io.ClosedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Closed input stream. This stream returns -1 to all attempts to read
something from the stream.
Typically uses of this class include testing for corner cases in methods
that accept input streams and acting as a sentinel value instead of a
null input stream.
- Since:
- Apache Tika 0.4, copied from Commons IO 1.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintread()Deprecated.Returns -1 to indicate that the stream is closed.Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ClosedInputStream
public ClosedInputStream()Deprecated.
-
-
Method Details
-
read
public int read()Deprecated.Returns -1 to indicate that the stream is closed.- Specified by:
readin classInputStream- Returns:
- always -1
-