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


InputStreamReader.h
Go to the documentation of this file.
1 // 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 INPUTSTREAMREADER_H
8 #define INPUTSTREAMREADER_H
9 
10 #include "Reader.h"
11 
12 namespace Lucene {
13 
15 class InputStreamReader : public Reader {
16 public:
19  virtual ~InputStreamReader();
20 
22 
23 protected:
26 
27 public:
29  virtual int32_t read();
30 
32  virtual int32_t read(wchar_t* b, int32_t offset, int32_t length);
33 
35  virtual void close();
36 
38  virtual bool markSupported();
39 
41  virtual void reset();
42 };
43 
44 }
45 
46 #endif
Lucene::InputStreamReader::~InputStreamReader
virtual ~InputStreamReader()
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::InputStreamReader::close
virtual void close()
Close the stream.
Lucene::UTF8DecoderStreamPtr
boost::shared_ptr< UTF8DecoderStream > UTF8DecoderStreamPtr
Definition: LuceneTypes.h:556
Lucene::InputStreamReader::reset
virtual void reset()
Reset the stream.
Lucene::ReaderPtr
boost::shared_ptr< Reader > ReaderPtr
Definition: LuceneTypes.h:547
Lucene::InputStreamReader::reader
ReaderPtr reader
Definition: InputStreamReader.h:21
Lucene::InputStreamReader::read
virtual int32_t read()
Read a single character.
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::InputStreamReader::InputStreamReader
InputStreamReader(const ReaderPtr &reader)
Create an InputStreamReader that uses the utf8 charset.
Lucene::Reader::length
virtual int64_t length()
The number of bytes in the stream.
Lucene::InputStreamReader::decoder
UTF8DecoderStreamPtr decoder
Definition: InputStreamReader.h:25
Lucene::Reader
Abstract class for reading character streams.
Definition: Reader.h:15
Reader.h
Lucene::InputStreamReader::markSupported
virtual bool markSupported()
Tell whether this stream supports the mark() operation.
Lucene::InputStreamReader
An InputStreamReader is a bridge from byte streams to character streams.
Definition: InputStreamReader.h:15
Lucene::InputStreamReader::read
virtual int32_t read(wchar_t *b, int32_t offset, int32_t length)
Read characters into a portion of an array.

clucene.sourceforge.net