Thumbnail file hits. Based on a patch from D Bera
[beagle.git] / beagled / Lucene.Net / Analysis / TokenStream.cs
bloba48a49d69cf4895e6cb9375c7619d10b6c719ac1
1 /*
2 * Copyright 2004 The Apache Software Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 using System;
17 namespace Lucene.Net.Analysis
20 /// <summary>A TokenStream enumerates the sequence of tokens, either from
21 /// fields of a document or from query text.
22 /// <p>
23 /// This is an abstract class. Concrete subclasses are:
24 /// <ul>
25 /// <li>{@link Tokenizer}, a TokenStream
26 /// whose input is a Reader; and
27 /// <li>{@link TokenFilter}, a TokenStream
28 /// whose input is another TokenStream.
29 /// </ul>
30 /// </summary>
32 public abstract class TokenStream
34 /// <summary>Returns the next token in the stream, or null at EOS. </summary>
35 public abstract Token Next();
37 /// <summary>Releases resources associated with this stream. </summary>
38 public virtual void Close()