private int index;
public static SerializableTokenStream buildSerializabletokenStream(TokenStream tokenStream) {
try {
List<List<AttributeImpl>> stream = fillCache( tokenStream );
return new SerializableTokenStream(stream);
}
catch ( IOException e ) {
throw new SearchException( "Unable to read token stream", e );
}
}