public final class OutputTo extends Object implements Output
Output
that encapsulates other destination for the data.
There is no thread-safety guarantee.
Output.NoNulls
public OutputTo(File file)
file
- The filepublic OutputTo(File file, boolean mkdirs)
file
- The filemkdirs
- Should we do mkdirs beforehand?public OutputTo(Path path)
path
- The pathpublic OutputTo(Path path, boolean mkdirs)
path
- The pathmkdirs
- Should we do mkdirs beforehand?public OutputTo(Writer writer)
writer
- The writerpublic OutputTo(OutputStream stream)
stream
- The streampublic OutputStream stream() throws IOException
Output
stream
in interface Output
IOException
- If something goes wrongCopyright © 2017 Cactoos. All rights reserved.