public class MockCharFilter extends CharStream
| Constructor and Description |
|---|
MockCharFilter(Reader in) |
MockCharFilter(Reader in,
int remainder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOffCorrectMap(int off,
int cumulativeDiff) |
void |
close() |
int |
correctOffset(int currentOff)
Called by CharFilter(s) and Tokenizer to correct token offset.
|
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
public MockCharFilter(Reader in, int remainder)
public MockCharFilter(Reader in)
public void close()
throws IOException
close in interface Closeableclose in class ReaderIOExceptionpublic int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic int correctOffset(int currentOff)
CharStreamcorrectOffset in class CharStreamcurrentOff - offset as seen in the outputprotected void addOffCorrectMap(int off,
int cumulativeDiff)