public class CompoundReader
extends java.io.Reader
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
finalLock |
protected boolean |
markSupported |
| Constructor and Description |
|---|
CompoundReader(java.util.Iterator<java.io.Reader> pReaders)
Create a new compound reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
ensureOpen()
Check to make sure that the stream has not been closed
|
void |
mark(int pReadLimit) |
boolean |
markSupported() |
protected java.io.Reader |
nextReader() |
int |
read() |
int |
read(char[] pBuffer,
int pOffset,
int pLength) |
boolean |
ready() |
void |
reset() |
long |
skip(long pChars) |
protected final java.lang.Object finalLock
protected final boolean markSupported
public CompoundReader(java.util.Iterator<java.io.Reader> pReaders)
pReaders - Iterator containting Readers,
providing the character stream.java.lang.NullPointerException - if pReaders is null, or
any of the elements in the iterator is null.java.lang.ClassCastException - if any element of the iterator is not a
java.io.Readerprotected final java.io.Reader nextReader()
protected final void ensureOpen()
throws java.io.IOException
java.io.IOException - if the stream is closedpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic void mark(int pReadLimit)
throws java.io.IOException
mark in class java.io.Readerjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.Readerpublic int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] pBuffer,
int pOffset,
int pLength)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic boolean ready()
throws java.io.IOException
ready in class java.io.Readerjava.io.IOExceptionpublic long skip(long pChars)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOExceptionCopyright © 2020. All Rights Reserved.