org.apache.lucene.analysis

Class CachingTokenFilter

public class CachingTokenFilter extends TokenFilter

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 reset, which repositions the stream to the first Token.
Constructor Summary
CachingTokenFilter(TokenStream input)
Method Summary
Tokennext()
voidreset()

Constructor Detail

CachingTokenFilter

public CachingTokenFilter(TokenStream input)

Method Detail

next

public Token next()

reset

public void reset()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.