Interface Readable
- All Superinterfaces:
Named
-
Method Summary
Modifier and TypeMethodDescriptionRepresent this Readable as an input stream.default ReaderasReader()Obtain aReaderfor this readable usingStandardCharsets.UTF_8.default ReaderObtain aReaderfor this readable.booleanexists()Does the underlying readable resource exist.static ReadableCreate aReadablefor the given file.static ReadableCreate aReadablefor the given URL.static ReadableCreate aReadablefor the given path.
-
Method Details
-
asInputStream
Represent this Readable as an input stream.- Returns:
- The input stream
- Throws:
IOException- if an I/O exception occurs
-
exists
boolean exists()Does the underlying readable resource exist.- Returns:
- True if it does
-
asReader
Obtain aReaderfor this readable usingStandardCharsets.UTF_8.- Returns:
- The reader
- Throws:
IOException- if an I/O error occurs
-
asReader
Obtain aReaderfor this readable.- Parameters:
charset- The charset to use- Returns:
- The reader
- Throws:
IOException- if an I/O error occurs
-
of
-
of
-
of
-