public static class AbstractOrigin.ReaderOrigin extends AbstractOrigin<Reader,AbstractOrigin.ReaderOrigin>
Reader 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 |
|---|
ReaderOrigin(Reader origin)
Constructs a new instance for the given origin.
|
| Modifier and Type | Method and Description |
|---|---|
Reader |
getReader(Charset charset)
Gets a new Reader on the origin, buffered by default.
|
get, getByteArray, getFile, getInputStream, getOutputStream, getPath, getWriter, toStringasThisclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasSupplierpublic ReaderOrigin(Reader origin)
origin - The origin.public Reader getReader(Charset charset) throws IOException
AbstractOrigingetReader in class AbstractOrigin<Reader,AbstractOrigin.ReaderOrigin>charset - the charset to use for decodingIOException - if an I/O error occurs opening the file.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.