public static class AbstractOrigin.WriterOrigin extends AbstractOrigin<java.io.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.WriterOriginorigin| Constructor and Description |
|---|
WriterOrigin(java.io.Writer origin)
Constructs a new instance for the given origin.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
getOutputStream(java.nio.file.OpenOption... options)
Gets this origin as an OutputStream, if possible.
|
java.io.Writer |
getWriter(java.nio.charset.Charset charset,
java.nio.file.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(java.io.Writer origin)
origin - The origin.public java.io.OutputStream getOutputStream(java.nio.file.OpenOption... options)
throws java.io.IOException
AbstractOrigingetOutputStream in class AbstractOrigin<java.io.Writer,AbstractOrigin.WriterOrigin>options - options specifying how the file is openedjava.io.IOException - if an I/O error occurs.public java.io.Writer getWriter(java.nio.charset.Charset charset,
java.nio.file.OpenOption... options)
throws java.io.IOException
AbstractOrigingetWriter in class AbstractOrigin<java.io.Writer,AbstractOrigin.WriterOrigin>charset - the charset to use for encodingoptions - options specifying how the file is openedjava.io.IOException - if an I/O error occurs opening or creating the file.