19 using System.Collections.Generic;
21 using Lucene.Net.Analysis;
22 using Lucene.Net.Analysis.Standard;
23 using SF.Snowball.Ext;
26 namespace Lucene.Net.Analysis.Snowball
41 private System.String name;
42 private ISet<string> stopSet;
43 private readonly
Version matchVersion;
49 SetOverridesTokenStreamMethod<SnowballAnalyzer>();
50 this.matchVersion = matchVersion;
54 [Obsolete(
"Use SnowballAnalyzer(Version, string, ISet) instead.")]
56 : this(matchVersion, name)
65 : this(matchVersion, name)
85 private class SavedStreams
95 public override TokenStream ReusableTokenStream(String fieldName, TextReader reader)
97 if (overridesTokenStreamMethod)
105 SavedStreams streams = (SavedStreams)PreviousTokenStream;
108 streams =
new SavedStreams();
114 streams.result, stopSet);
116 PreviousTokenStream = streams;
120 streams.source.Reset(reader);
122 return streams.result;