public abstract class CharFilter extends FilterReader
Reader with additional offset
correction. Tokenizers will automatically use correctOffset(int)
if a CharFilter subclass is used.in| Constructor and Description |
|---|
CharFilter(Reader in)
Create a new CharFilter wrapping the provided reader.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
correct(int currentOff)
Subclasses override to correct the current offset.
|
int |
correctOffset(int currentOff)
Chains the corrected offset through the input
CharFilter(s).
|
close, mark, markSupported, read, read, ready, reset, skippublic CharFilter(Reader in)
in - a Reader, can also be a CharFilter for chaining.protected abstract int correct(int currentOff)
currentOff - current offsetpublic final int correctOffset(int currentOff)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.