kactoos-jvm / nnl.rocks.kactoos / Input
@FunctionalInterface interface Input
Input.
Here is for example how Input can be used in order to read the content of a text file:
String content = new TextOf(
new InputOf(new File("/tmp/names.txt"))
).asString();
Here nnl.rocks.kactoos.io.InputOf implements Input and behaves like one, providing read-only access to the encapsulated java.io.File.
There is no thread-safety guarantee.
See Also
Since 0.1
| Name | Summary |
|---|---|
| stream | abstract fun stream(): InputStreamGet read access to it. |
| Name | Summary |
|---|---|
| CheckedInput | class CheckedInput<E> : InputInput that throws exception of specified type. |
| DeadInput | class DeadInput : InputInput with no data. |
| GzipInput | class GzipInput : InputInput that reads compressed data from the GZIP file format. |
| HeadInput | class HeadInput : InputInput that only shows the first N bytes of the original input. |
| InputOf | class InputOf : InputAn Input that encapsulates other sources of data. |
| InputWithFallback | class InputWithFallback : InputInput that returns an alternative input if the main one throws IOException. |
| Joined | class Joined : InputConcatenation of several inputs. |
| LoggingInput | class LoggingInput : InputLogged input. |
| ResourceOf | class ResourceOf : InputClasspath resource. |
| StdinInput | class StdinInput : InputInput that reads from stdin. |
| StickyInput | class StickyInput : InputInput that reads only once. |
| SyncInput | class SyncInput : InputThread-safe Input. |
| TailInput | class TailInput : InputInput showing only last N bytes of the stream. |
| TeeInput | class TeeInput : InputInput to Output copying pipe. |
| UncheckedInput | class UncheckedInput : InputInput that doesn’t throw checked Exception. |
| Zip | class Zip : InputZip files and directory. |