Lucene.Net.Analysis.Stempel.StempelStemmer.Load C# (CSharp) Method

Load() public static method

Load a stemmer table from an inputstream.
public static Load ( Stream stemmerTable ) : Egothor.Stemmer.Trie
stemmerTable System.IO.Stream
return Egothor.Stemmer.Trie
        public static Trie Load(Stream stemmerTable)
        {
            DataInputStream @in = null;
            try
            {
                @in = new DataInputStream(stemmerTable);
                string method = @in.ReadUTF().ToUpperInvariant();
                if (method.IndexOf('M') < 0)
                {
                    return new Trie(@in);
                }
                else
                {
                    return new MultiTrie2(@in);
                }
            }
            finally
            {
                @in.Dispose();
            }
        }