public override TokenStream ReusableTokenStream(System.String fieldName, System.IO.TextReader reader) { var tokenizer = (Tokenizer)PreviousTokenStream; if (tokenizer == null) { tokenizer = new CustomTokenizer(reader); PreviousTokenStream = tokenizer; } else tokenizer.Reset(reader); return tokenizer; }
public override TokenStream ReusableTokenStream(System.String fieldName, System.IO.TextReader reader) { var tokenizer = (Tokenizer)PreviousTokenStream; if (tokenizer == null) { tokenizer = new CustomTokenizer(reader); PreviousTokenStream = tokenizer; } else { tokenizer.Reset(reader); } return(tokenizer); }