public final class SingleTokenTokenStream
extends org.apache.lucene.analysis.TokenStream
TokenStream containing a single token.| Constructor and Description |
|---|
SingleTokenTokenStream(org.apache.lucene.analysis.Token token) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.analysis.Token |
getToken() |
boolean |
incrementToken() |
void |
reset() |
void |
setToken(org.apache.lucene.analysis.Token token) |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic SingleTokenTokenStream(org.apache.lucene.analysis.Token token)
public final boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void reset()
throws IOException
reset in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic org.apache.lucene.analysis.Token getToken()
public void setToken(org.apache.lucene.analysis.Token token)