? ClosedInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.io.input.ClosedInputStream
- ????????:
Closeable
,AutoCloseable
Closed input stream. This stream returns EOF 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.
- ???????:
- 1.4
-
????
?? -
?????
??? -
????
??????? java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
??????
-
CLOSED_INPUT_STREAM
A singleton.
-
-
???????
-
ClosedInputStream
public ClosedInputStream()
-
-
??????
-
read
Returns -1 to indicate that the stream is closed.- ???:
read
???InputStream
- ??:
- always -1
-