public static class AbstractOrigin.OutputStreamOrigin extends AbstractOrigin<OutputStream,AbstractOrigin.OutputStreamOrigin>
OutputStream origin.
This origin cannot provide some of the other aspects.
AbstractOrigin.AbstractRandomAccessFileOrigin<T extends RandomAccessFile,B extends AbstractOrigin.AbstractRandomAccessFileOrigin<T,B>>, AbstractOrigin.ByteArrayOrigin, AbstractOrigin.CharSequenceOrigin, AbstractOrigin.FileOrigin, AbstractOrigin.InputStreamOrigin, AbstractOrigin.IORandomAccessFileOrigin, AbstractOrigin.OutputStreamOrigin, AbstractOrigin.PathOrigin, AbstractOrigin.RandomAccessFileOrigin, AbstractOrigin.ReaderOrigin, AbstractOrigin.URIOrigin, AbstractOrigin.WriterOriginorigin| Constructor and Description |
|---|
OutputStreamOrigin(OutputStream origin)
Constructs a new instance for the given origin.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutputStream(OpenOption... options)
Gets this origin as an OutputStream, if possible.
|
Writer |
getWriter(Charset charset,
OpenOption... options)
Gets a new Writer on the origin, buffered by default.
|
get, getByteArray, getByteArray, getCharSequence, getFile, getInputStream, getPath, getRandomAccessFile, getReader, size, toStringasThisclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasSupplier, getUncheckedpublic OutputStreamOrigin(OutputStream origin)
origin - The origin, not null.public OutputStream getOutputStream(OpenOption... options)
The options parameter is ignored since a OutputStream does not need an OpenOption to be written.
getOutputStream in class AbstractOrigin<OutputStream,AbstractOrigin.OutputStreamOrigin>options - options specifying how the file is openedpublic Writer getWriter(Charset charset, OpenOption... options) throws IOException
The options parameter is ignored since a OutputStream does not need an OpenOption to be written.
getWriter in class AbstractOrigin<OutputStream,AbstractOrigin.OutputStreamOrigin>charset - the charset to use for encodingoptions - options specifying how the file is openedIOException - if an I/O error occurs opening or creating the file.