public interface 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 InputOf implements
Input and behaves like
one, providing read-only access to
the encapsulated File.
There is no thread-safety guarantee.
InputOf| Modifier and Type | Interface and Description |
|---|---|
static class |
Input.NoNulls
Input check for no nulls.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
stream()
Get read access to it.
|
InputStream stream() throws Exception
Exception - If something goes wrongCopyright © 2017–2018 Cactoos. All rights reserved.