public static class AbstractOrigin.WriterOrigin extends AbstractOrigin<Writer,AbstractOrigin.WriterOrigin>
Writer origin.
This origin cannot provide other aspects.
AbstractOrigin.ByteArrayOrigin, AbstractOrigin.CharSequenceOrigin, AbstractOrigin.FileOrigin, AbstractOrigin.InputStreamOrigin, AbstractOrigin.OutputStreamOrigin, AbstractOrigin.PathOrigin, AbstractOrigin.ReaderOrigin, AbstractOrigin.URIOrigin, AbstractOrigin.WriterOrigin| Constructor and Description |
|---|
WriterOrigin(Writer 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, getReader, size, toStringasThisclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasSupplierpublic WriterOrigin(Writer origin)
origin - The origin.public OutputStream getOutputStream(OpenOption... options) throws IOException
AbstractOrigingetOutputStream in class AbstractOrigin<Writer,AbstractOrigin.WriterOrigin>options - options specifying how the file is openedIOException - if an I/O error occurs.public Writer getWriter(Charset charset, OpenOption... options) throws IOException
AbstractOrigingetWriter in class AbstractOrigin<Writer,AbstractOrigin.WriterOrigin>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.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.