Known Direct Subclasses
CharFilter |
Subclasses of CharFilter can be chained to filter CharStream. |
CharReader |
CharReader is a Reader wrapper. |
|
Known Indirect Subclasses
|
Class Overview
CharStream adds correctOffset(int)
functionality over Reader. All Tokenizers accept a
CharStream instead of Reader
as input, which enables
arbitrary character based filtering before tokenization.
The correctOffset(int)
method fixed offsets to account for
removal or insertion of characters, so that the offsets
reported in the tokens match the character offsets of the
original Reader.
Summary
[Expand]
Inherited Fields |
From class
java.io.Reader
|
Public Methods |
abstract
int
|
correctOffset(int currentOff)
Called by CharFilter(s) and Tokenizer to correct token offset.
|
[Expand]
Inherited Methods |
From class
java.io.Reader
abstract
void
|
close()
|
void
|
mark(int arg0)
|
boolean
|
markSupported()
|
int
|
read()
|
abstract
int
|
read(char[] arg0, int arg1, int arg2)
|
int
|
read(CharBuffer arg0)
|
int
|
read(char[] arg0)
|
boolean
|
ready()
|
void
|
reset()
|
long
|
skip(long arg0)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.io.Closeable
|
From interface
java.lang.Readable
abstract
int
|
read(CharBuffer arg0)
|
|
Public Constructors
Public Methods
public
abstract
int
correctOffset
(int currentOff)
Called by CharFilter(s) and Tokenizer to correct token offset.
Parameters
currentOff
| offset as seen in the output |
Returns
- corrected offset based on the input