public class SpellWritingFilter
extends TokenFilter
| Modifier and Type | Field and Description |
|---|---|
private boolean |
firstTime
true before the first token is returned
|
private SpellWriter |
writer
Spelling writer to write to
|
| Constructor and Description |
|---|
SpellWritingFilter(TokenStream input,
SpellWriter writer)
Construct a token stream to add tokens to a spelling correction
dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
next()
Retrieve the next token in the stream.
|
private SpellWriter writer
private boolean firstTime
public SpellWritingFilter(TokenStream input,
SpellWriter writer)
input - Input stream of tokens to processwriter - Spelling dictionary writer