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
{@link TokenStream#reset()}, which repositions the
stream to the first Token.