32 virtual int32_t
correct(int32_t currentOff);
38 virtual int32_t
read(
wchar_t* buffer, int32_t offset, int32_t length);
40 virtual void mark(int32_t readAheadLimit);
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Subclasses of CharFilter can be chained to filter CharStream. They can be used as Reader with additio...
Definition CharFilter.h:17
CharStreamPtr input
Definition CharFilter.h:26
virtual void reset()
Reset the stream. If the stream has been marked, then attempt to reposition it at the mark....
virtual int32_t correctOffset(int32_t currentOff)
Chains the corrected offset through the input CharFilter.
virtual void close()
Close the stream.
CharFilter(const CharStreamPtr &in)
virtual int32_t correct(int32_t currentOff)
Subclass may want to override to correct the current offset.
virtual bool markSupported()
Tell whether this stream supports the mark() operation.
virtual void mark(int32_t readAheadLimit)
Mark the present position in the stream. Subsequent calls to reset() will attempt to reposition the s...
virtual int32_t read(wchar_t *buffer, int32_t offset, int32_t length)
Read characters into a portion of an array.
CharStream adds correctOffset functionality over Reader. All Tokenizers accept a CharStream instead o...
Definition CharStream.h:18
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< CharStream > CharStreamPtr
Definition LuceneTypes.h:27