Class CharFilter
Subclasses of CharFilter can be chained to filter a
This class is abstract: at a minimum you must implement
You can optionally provide more efficient implementations of additional methods
like
For examples and integration with Analyzer, see the Lucene.Net.Analysis namespace documentation.
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class CharFilter : TextReader
Constructors
Name | Description |
---|---|
CharFilter(TextReader) | Create a new CharFilter wrapping the provided reader. |
Fields
Name | Description |
---|---|
m_input | The underlying character-input stream. |
Properties
Name | Description |
---|---|
IsMarkSupported | Tells whether this stream supports the Mark(Int32) operation. The default implementation always returns false. Subclasses should override this method. LUCENENET specific. Moved here from the Reader class (in Java) so it can be overridden to provide reader buffering. |
IsReady | Tells whether this stream is ready to be read.
True if the next LUCENENET specific. Moved here from the Reader class (in Java) so it can be overridden to provide reader buffering. |
Methods
Name | Description |
---|---|
Correct(Int32) | Subclasses override to correct the current offset. |
CorrectOffset(Int32) | Chains the corrected offset through the input CharFilter(s). |
Dispose(Boolean) | Closes the underlying input stream.
NOTE:
The default implementation closes the input |
Mark(Int32) | Marks the present position in the stream. Subsequent calls to Reset() will attempt to reposition the stream to this point. Not all character-input streams support the Mark(Int32) operation. LUCENENET specific. Moved here from the Reader class (in Java) so it can be overridden to provide reader buffering. |
Reset() | LUCENENET specific. Moved here from the Reader class (in Java) so it can be overridden to provide reader buffering. |
Skip(Int32) | Skips characters. This method will block until some characters are available, an I/O error occurs, or the end of the stream is reached. LUCENENET specific. Moved here from the Reader class (in Java) so it can be overridden to provide reader buffering. |