public class SpellWritingFilter
extends TokenFilter
| Modifier and Type | Field and Description |
|---|---|
private SpellWriter |
spellWriter
Queues words for addition to a spelling correction dictionary
|
| Constructor and Description |
|---|
SpellWritingFilter(TokenStream input,
SpellWriter spellWriter)
Construct a new filter which writes words to a spelling dictionary, but
doesn't change any tokens.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
next()
Get the next token in the stream.
|
private SpellWriter spellWriter
public SpellWritingFilter(TokenStream input,
SpellWriter spellWriter)
input - stream to read tokens fromspellWriter - destination for spelling words