? ClosedReader
java.lang.Object
java.io.Reader
org.apache.commons.io.input.ClosedReader
- ????????:
Closeable
,AutoCloseable
,Readable
Closed reader. This reader returns EOF to all attempts to read something from it.
Typically uses of this class include testing for corner cases in methods that accept readers and acting as a sentinel
value instead of a null
reader.
- ???????:
- 2.7
-
????
?? -
?????
??? -
????
??????? java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
??????
-
CLOSED_READER
A singleton.
-
-
???????
-
ClosedReader
public ClosedReader()
-
-
??????
-
read
Returns -1 to indicate that the stream is closed. -
close
- ???:
close
????AutoCloseable
- ???:
close
????Closeable
- ???:
close
???Reader
- ??:
IOException
-