private final class ByteSource.AsCharSource extends CharSource
| Modifier and Type | Field and Description |
|---|---|
private java.nio.charset.Charset |
charset |
| Modifier | Constructor and Description |
|---|---|
private |
AsCharSource(java.nio.charset.Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
openStream()
Opens a new
Reader for reading from this source. |
java.lang.String |
toString() |
concat, concat, concat, copyTo, copyTo, empty, isEmpty, openBufferedStream, read, readFirstLine, readLines, readLines, wrappublic java.io.Reader openStream()
throws java.io.IOException
CharSourceReader for reading from this source. This method should return a new,
independent reader each time it is called.
The caller is responsible for ensuring that the returned reader is closed.
openStream in class CharSourcejava.io.IOException - if an I/O error occurs in the process of opening the readerpublic java.lang.String toString()
toString in class java.lang.Object