/// <summary> /// Creates a new <see cref="TokenStreamComponents"/> instance. /// </summary> /// <param name="source"> /// the analyzer's tokenizer </param> public TokenStreamComponents(Tokenizer source) { this.m_source = source; this.m_sink = source; }
/// <summary> /// Create a new <see cref="CachingTokenFilter"/> around <paramref name="input"/>, /// caching its token attributes, which can be replayed again /// after a call to <see cref="Reset()"/>. /// </summary> public CachingTokenFilter(TokenStream input) : base(input) { }
/// <summary> /// Creates a new <see cref="TokenStreamComponents"/> instance. /// </summary> /// <param name="source"> /// the analyzer's tokenizer </param> /// <param name="result"> /// the analyzer's resulting token stream </param> public TokenStreamComponents(Tokenizer source, TokenStream result) { this.m_source = source; this.m_sink = result; }