Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » analysis » [javadoc | source]
org.apache.lucene.analysis
public class: CachingTokenFilter [javadoc | source]
java.lang.Object
   org.apache.lucene.analysis.TokenStream
      org.apache.lucene.analysis.TokenFilter
         org.apache.lucene.analysis.CachingTokenFilter
This class can be used if the Tokens of a TokenStream are intended to be consumed more than once. It caches all Tokens locally in a List. CachingTokenFilter implements the optional method TokenStream#reset() , which repositions the stream to the first Token.
Fields inherited from org.apache.lucene.analysis.TokenFilter:
input
Constructor:
 public CachingTokenFilter(TokenStream input) 
Method from org.apache.lucene.analysis.CachingTokenFilter Summary:
next,   reset
Methods from org.apache.lucene.analysis.TokenFilter:
close
Methods from org.apache.lucene.analysis.TokenStream:
close,   next,   next,   reset
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.analysis.CachingTokenFilter Detail:
 public Token next() throws IOException 
 public  void reset() throws IOException