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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CharReader.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 CHARREADER_H
8 #define CHARREADER_H
9
10 #include "CharStream.h"
11
12 namespace Lucene
13 {
16 class LPPAPI CharReader : public CharStream
17 {
18 public:
19 CharReader(ReaderPtr in);
20 virtual ~CharReader();
21
22 LUCENE_CLASS(CharReader);
23
24 protected:
25 ReaderPtr input;
26
27 public:
28 using CharStream::read;
29
30 static CharStreamPtr get(ReaderPtr input);
31
32 virtual int32_t correctOffset(int32_t currentOff);
33 virtual void close();
34 virtual int32_t read(wchar_t* buffer, int32_t offset, int32_t length);
35 virtual bool markSupported();
36 virtual void mark(int32_t readAheadLimit);
37 virtual void reset();
38 };
39 }
40
41 #endif

clucene.sourceforge.net