public class PrefixedReader
extends java.io.Reader
Modifier and Type | Field and Description |
---|---|
protected int |
charMax |
protected int |
charPosition |
protected CharacterBuffer |
chars |
protected java.io.Reader |
remainderStream |
Constructor and Description |
---|
PrefixedReader(CharacterBuffer chars,
java.io.Reader remainderStream)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read() |
int |
read(char[] cbuf) |
int |
read(char[] cbuf,
int off,
int len) |
int |
read(java.nio.CharBuffer target) |
long |
skip(long n) |
protected final CharacterBuffer chars
protected final java.io.Reader remainderStream
protected int charPosition
protected int charMax
public PrefixedReader(CharacterBuffer chars, java.io.Reader remainderStream)
public int read(java.nio.CharBuffer target) throws java.io.IOException
read
in interface java.lang.Readable
read
in class java.io.Reader
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] cbuf) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.Reader
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException