public final class CharReader extends CharStream
CharStream
, defining an
identify function correctOffset(int)
method that
simply returns the provided offset.Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
correctOffset(int currentOff)
Called by CharFilter(s) and Tokenizer to correct token offset.
|
static CharStream |
get(Reader input) |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read(char[] cbuf,
int off,
int len) |
void |
reset() |
public static CharStream get(Reader input)
public int correctOffset(int currentOff)
CharStream
correctOffset
in class CharStream
currentOff
- offset as seen in the outputpublic void close() throws IOException
close
in interface Closeable
close
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public void mark(int readAheadLimit) throws IOException
mark
in class Reader
IOException
public void reset() throws IOException
reset
in class Reader
IOException