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


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

clucene.sourceforge.net