Class BufferedCharFilter
LUCENENET specific class to mimic Java's BufferedReader (that is, a reader that is seekable) so it supports Mark() and Reset() (which are part of the Java Reader class), but also provide the Correct() method of BaseCharFilter.
Inheritance
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public class BufferedCharFilter : BaseCharFilter, IDisposable
Constructors
Name | Description |
---|---|
BufferedCharFilter(TextReader) | Creates a buffering character-input stream that uses a default-sized input buffer. |
BufferedCharFilter(TextReader, Int32) | Creates a buffering character-input stream that uses an input buffer of the specified size. |
Fields
Name | Description |
---|---|
DEFAULT_CHAR_BUFFER_SIZE | |
m_lock | The object used to synchronize access to the reader. |
Properties
Name | Description |
---|---|
IsMarkSupported | Indicates whether this reader supports the Mark(Int32) and
Reset() methods. This implementation returns |
IsReady | Indicates whether this reader is ready to be read without blocking. |
Methods
Name | Description |
---|---|
Close() | |
Dispose(Boolean) | Disposes this reader. This implementation closes the buffered source reader and releases the buffer. Nothing is done if this reader has already been disposed. |
InitializeLifetimeService() | |
Mark(Int32) | Sets a mark position in this reader. The parameter |
Peek() | |
Read() | Reads a single character from this reader and returns it with the two higher-order bytes set to 0. If possible, BufferedCharFilter returns a character from the buffer. If there are no characters available in the buffer, it fills the buffer and then returns a character. It returns -1 if there are no more characters in the source reader. |
Read(Char[], Int32, Int32) | Reads at most |
ReadBlock(Char[], Int32, Int32) | |
ReadLine() | Returns the next line of text available from this reader. A line is
represented by zero or more characters followed by |
ReadToEnd() | |
Reset() | Resets this reader's position to the last Mark(Int32) location. Invocations of Read() and Skip(Int32) will occur from this new location. |
Skip(Int32) | Skips |