Reader that concatenates multiple readers.
| Modifier and Type | Field and Description |
|---|---|
| private Reader | |
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | close()
Implements abstract java. Implements java. |
| public int | read(char[]
Destination buffer cbuf, int Offset at which to start storing characters off, int Maximum number of characters to read len)Implements abstract java. |
| public boolean | |
| public long |
| current | back to summary |
|---|---|
| private Reader current
| |
| it | back to summary |
|---|---|
| private final Iterator<? extends CharSource> it | |
| MultiReader | back to summary |
|---|---|
| pack-priv MultiReader(Iterator<? extends CharSource> readers) throws IOException | |
| advance | back to summary |
|---|---|
| private void advance() throws IOException Closes the current reader and opens the next one, if any. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), ready(), mark(), reset(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect.
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int off, int len) throws IOException Implements abstract java. Doc from java. Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached. If
| |
| ready | back to summary |
|---|---|
| public boolean ready() throws IOException Overrides java. Doc from java. Tells whether this stream is ready to be read.
| |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Doc from java. Skips characters. This method will block until some characters are available, an I/O error occurs, or the end of the stream is reached. If the stream is already at its end before this method is invoked, then no characters are skipped and zero is returned.
| |