|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.miscellaneous.SingleTokenTokenStream
public final class SingleTokenTokenStream
A TokenStream containing a single token.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource |
|---|
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State |
| Constructor Summary | |
|---|---|
SingleTokenTokenStream(org.apache.lucene.analysis.Token token)
|
|
| Method Summary | |
|---|---|
org.apache.lucene.analysis.Token |
getToken()
|
boolean |
incrementToken()
|
void |
reset()
|
void |
setToken(org.apache.lucene.analysis.Token token)
|
| Methods inherited from class org.apache.lucene.analysis.TokenStream |
|---|
close, end |
| Methods inherited from class org.apache.lucene.util.AttributeSource |
|---|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingleTokenTokenStream(org.apache.lucene.analysis.Token token)
| Method Detail |
|---|
public final boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOException
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||