|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectTokenStream
TokenFilter
SpellWritingFilter
public class SpellWritingFilter
Adds words from the token stream to a SpellWriter.
| Field Summary | |
|---|---|
private boolean |
firstTime
true before the first token is returned |
private SpellWriter |
writer
Spelling writer to write to |
| Fields inherited from class TokenFilter |
|---|
input |
| Constructor Summary | |
|---|---|
SpellWritingFilter(TokenStream input,
SpellWriter writer)
Construct a token stream to add tokens to a spelling correction dictionary. |
|
| Method Summary | |
|---|---|
Token |
next()
Retrieve the next token in the stream. |
| Methods inherited from class TokenFilter |
|---|
close |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SpellWriter writer
private boolean firstTime
| Constructor Detail |
|---|
public SpellWritingFilter(TokenStream input,
SpellWriter writer)
input - Input stream of tokens to processwriter - Spelling dictionary writer| Method Detail |
|---|
public Token next()
throws IOException
next in class TokenStreamIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||