public abstract class BaseCharFilter extends CharFilter
CharFilter.
You subclass this, and then record mappings by calling
addOffCorrectMap(int, int), and then invoke the correct
method to correct an offset.input| Constructor and Description |
|---|
BaseCharFilter(CharStream in) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOffCorrectMap(int off,
int cumulativeDiff) |
protected int |
correct(int currentOff)
Retrieve the corrected offset.
|
protected int |
getLastCumulativeDiff() |
close, correctOffset, mark, markSupported, read, resetpublic BaseCharFilter(CharStream in)
protected int correct(int currentOff)
correct in class CharFiltercurrentOff - current offsetprotected int getLastCumulativeDiff()
protected void addOffCorrectMap(int off,
int cumulativeDiff)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.