public class PrefixedReader extends Reader
| Modifier and Type | Field and Description |
|---|---|
protected int |
charMax |
protected int |
charPosition |
protected CharacterBuffer |
chars |
protected Reader |
remainderStream |
| Constructor and Description |
|---|
PrefixedReader(CharacterBuffer chars,
Reader remainderStream)
Constructor
|
protected final CharacterBuffer chars
protected final Reader remainderStream
protected int charPosition
protected int charMax
public PrefixedReader(CharacterBuffer chars, Reader remainderStream)
public int read(CharBuffer target) throws IOException
read in interface Readableread in class ReaderIOExceptionpublic int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf)
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic long skip(long n)
throws IOException
skip in class ReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOException