23 using System.Collections.Generic;
27 using Lucene.Net.Analysis.Standard;
30 namespace Lucene.Net.Analysis.Th
41 private readonly
Version matchVersion;
45 SetOverridesTokenStreamMethod<ThaiAnalyzer>();
46 this.matchVersion = matchVersion;
59 private class SavedStreams
65 public override TokenStream ReusableTokenStream(String fieldName, TextReader reader)
67 if (overridesTokenStreamMethod)
75 SavedStreams streams = (SavedStreams)PreviousTokenStream;
78 streams =
new SavedStreams();
84 PreviousTokenStream = streams;
88 streams.source.Reset(reader);
89 streams.result.Reset();
91 return streams.result;