org.apache.lucene.analysis.miscellaneous
Class SingleTokenTokenStream

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by org.apache.lucene.analysis.TokenStream
          extended by org.apache.lucene.analysis.miscellaneous.SingleTokenTokenStream
All Implemented Interfaces:
Closeable

public final class SingleTokenTokenStream
extends TokenStream

A TokenStream containing a single token.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
AttributeSource.AttributeFactory, AttributeSource.State
 
Constructor Summary
SingleTokenTokenStream(Token token)
           
 
Method Summary
 Token getToken()
           
 boolean incrementToken()
           
 void reset()
           
 void setToken(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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleTokenTokenStream

public SingleTokenTokenStream(Token token)
Method Detail

incrementToken

public final boolean incrementToken()
Specified by:
incrementToken in class TokenStream

reset

public void reset()
Overrides:
reset in class TokenStream

getToken

public Token getToken()

setToken

public void setToken(Token token)


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.