CharStream adds {@link #CorrectOffset} functionality over {@link Reader}. All Tokenizers accept a CharStream instead of {@link Reader} as input, which enables arbitrary character based filtering before tokenization. The {@link #CorrectOffset} method fixed offsets to account for removal or insertion of characters, so that the offsets reported in the tokens match the character offsets of the original Reader.

Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public abstract class CharStream : StreamReader
Visual Basic
Public MustInherit Class CharStream _
	Inherits StreamReader
Visual C++
public ref class CharStream abstract : public StreamReader

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    System.IO..::..TextReader
      System.IO..::..StreamReader
        Lucene.Net.Analysis..::..CharStream
          Lucene.Net.Analysis..::..CharFilter
          Lucene.Net.Analysis..::..CharReader

See Also