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 Readable
read
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf) throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public long skip(long n) throws IOException
skip
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException