Interface Input
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Subinterfaces:
DynamicInput
- All Known Implementing Classes:
DynamicInputFromPipe, DynamicInputFromStream, FileInput, InputBase
Interface for optional character views over a live source.
The Input instance itself must be closed.
Views must be used consistently: Once a reader with a specific charset has been obtained,
then it is not possible to obtain another reader view with a different charset.
Closing the readers or the inputStream directly should be avoided and may raise an
UnsupportedOperationException.-
Method Summary
-
Method Details
-
inputStream
InputStream inputStream() -
hasReader
boolean hasReader() -
reader
BufferedReader reader() -
reader
-
getReaderCharset
Charset getReaderCharset() -
transferTo
- Throws:
IOException
-