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)
CharStreamcorrectOffset in class CharStreamcurrentOff - offset as seen in the outputpublic void close()
throws IOException
close in interface Closeableclose in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic boolean markSupported()
markSupported in class Readerpublic void mark(int readAheadLimit)
throws IOException
mark in class ReaderIOExceptionpublic void reset()
throws IOException
reset in class ReaderIOException