public static class AbstractOrigin.WriterOrigin extends AbstractOrigin<Writer,AbstractOrigin.WriterOrigin>
Writer origin.
This origin cannot provide other aspects.
AbstractOrigin.ByteArrayOrigin, 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 |
|---|---|
Writer |
getWriter(Charset charset,
OpenOption... options)
Gets a new Writer on the origin, buffered by default.
|
get, getByteArray, getFile, getInputStream, getOutputStream, getPath, getReader, toStringasThisclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasSupplierpublic WriterOrigin(Writer origin)
origin - The origin.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.