private static final class CharSource.ConcatenatedCharSource extends CharSource
Modifier and Type | Field and Description |
---|---|
private java.lang.Iterable<? extends CharSource> |
sources |
Constructor and Description |
---|
ConcatenatedCharSource(java.lang.Iterable<? extends CharSource> sources) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
Returns whether the source has zero chars.
|
java.io.Reader |
openStream()
Opens a new
Reader for reading from this source. |
java.lang.String |
toString() |
concat, concat, concat, copyTo, copyTo, empty, openBufferedStream, read, readFirstLine, readLines, readLines, wrap
private final java.lang.Iterable<? extends CharSource> sources
ConcatenatedCharSource(java.lang.Iterable<? extends CharSource> sources)
public java.io.Reader openStream() throws java.io.IOException
CharSource
Reader
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 CharSource
java.io.IOException
- if an I/O error occurs in the process of opening the readerpublic boolean isEmpty() throws java.io.IOException
CharSource
isEmpty
in class CharSource
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
toString
in class java.lang.Object