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.Readableread in class java.io.Readerjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] cbuf)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOException