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
include
InputStreamReader.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 INPUTSTREAMREADER_H
8
#define INPUTSTREAMREADER_H
9
10
#include "
Reader.h
"
11
12
namespace
Lucene {
13
15
class
InputStreamReader
:
public
Reader
{
16
public
:
18
InputStreamReader
(
const
ReaderPtr
&
reader
);
19
virtual
~InputStreamReader
();
20
21
LUCENE_CLASS
(
InputStreamReader
);
22
23
protected
:
24
ReaderPtr
reader
;
25
UTF8DecoderStreamPtr
decoder
;
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
clucene.sourceforge.net