public static class AbstractOrigin.WriterOrigin extends AbstractOrigin<java.io.Writer,AbstractOrigin.WriterOrigin>
Writer origin.
This origin cannot provide conversions to other aspects.
AbstractOrigin.AbstractRandomAccessFileOrigin<T extends java.io.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.WriterOrigin| 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, getRandomAccessFile, getReader, size, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitasSupplier, getUncheckedpublic WriterOrigin(java.io.Writer origin)
origin - The origin, not null.public java.io.OutputStream getOutputStream(java.nio.file.OpenOption... options)
throws java.io.IOException
The options parameter is ignored since a Writer does not need an OpenOption to be written.
getOutputStream 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
The charset parameter is ignored since a Writer does not need a Charset to be written.
The options parameter is ignored since a Writer does not need an OpenOption to be written.
getWriter 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.Copyright © 2010 - 2025 Adobe. All Rights Reserved