public class MockCharFilter extends CharStream
| Constructor and Description |
|---|
MockCharFilter(java.io.Reader in) |
MockCharFilter(java.io.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(java.io.Reader in,
int remainder)
public MockCharFilter(java.io.Reader in)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose 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,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int correctOffset(int currentOff)
CharStreamcorrectOffset in class CharStreamcurrentOff - offset as seen in the outputprotected void addOffCorrectMap(int off,
int cumulativeDiff)
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.