public interface Output
Here is for example how Output
can be used
together with Input
in order to modify the content
of a text file:
new LengthOf( new TeeInput( new InputOf(new TextOf("Hello, world!")), new OutputTo(new File("/tmp/names.txt")) ) ).asValue();
Here OutputTo
implements Output
and behaves like
one, providing write-only access to the encapsulated
File
. The TeeInput
copies the content of the
input to the output. The LengthOf
calculates the size of the copied data.
There is no thread-safety guarantee.
OutputTo
Modifier and Type | Interface and Description |
---|---|
static class |
Output.NoNulls
Output check for no nulls.
|
Modifier and Type | Method and Description |
---|---|
OutputStream |
stream()
Get write access to it.
|
OutputStream stream() throws IOException
IOException
- If something goes wrongCopyright © 2017 Cactoos. All rights reserved.