Lucene++ - a full-featured, c++ search engine
API Documentation


Loading...
Searching...
No Matches
CharStream.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef CHARSTREAM_H
8#define CHARSTREAM_H
9
10#include "Reader.h"
11
12namespace Lucene {
13
18class LPPAPI CharStream : public Reader {
19public:
20 virtual ~CharStream();
22
23public:
28 virtual int32_t correctOffset(int32_t currentOff) = 0;
29};
30
31}
32
33#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
CharStream adds correctOffset functionality over Reader. All Tokenizers accept a CharStream instead o...
Definition CharStream.h:18
virtual ~CharStream()
virtual int32_t correctOffset(int32_t currentOff)=0
Called by CharFilter(s) and Tokenizer to correct token offset.
Abstract class for reading character streams.
Definition Reader.h:15
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net