com.twitter.common.text.token
Class TokenStreamDuplicator.DuplicatedTokenStream

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by com.twitter.common.text.token.TokenStream
          extended by com.twitter.common.text.token.TokenProcessor
              extended by com.twitter.common.text.token.TokenStreamDuplicator.DuplicatedTokenStream
Enclosing class:
TokenStreamDuplicator

protected static final class TokenStreamDuplicator.DuplicatedTokenStream
extends TokenProcessor


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
protected TokenStreamDuplicator.DuplicatedTokenStream(TokenStream inputStream)
           
 
Method Summary
 boolean incrementToken()
          Consumers call this method to advance the stream to the next token.
 void reset(CharSequence input)
          Resets this TokenStream (and also downstream tokens if they exist) to parse a new input.
protected  void resetStates(List<org.apache.lucene.util.AttributeSource.State> states)
           
 
Methods inherited from class com.twitter.common.text.token.TokenProcessor
getInputStream, getInstanceOf
 
Methods inherited from class com.twitter.common.text.token.TokenStream
toStringList
 
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenStreamDuplicator.DuplicatedTokenStream

protected TokenStreamDuplicator.DuplicatedTokenStream(TokenStream inputStream)
Method Detail

incrementToken

public boolean incrementToken()
Description copied from class: TokenStream
Consumers call this method to advance the stream to the next token.

Specified by:
incrementToken in class TokenStream
Returns:
false for end of stream; true otherwise

reset

public void reset(CharSequence input)
Description copied from class: TokenStream
Resets this TokenStream (and also downstream tokens if they exist) to parse a new input.

Overrides:
reset in class TokenProcessor
Parameters:
input - new text to parse.

resetStates

protected void resetStates(List<org.apache.lucene.util.AttributeSource.State> states)