Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
StringReader.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 STRINGREADER_H
8
#define STRINGREADER_H
9
10
#include "
Reader.h
"
11
12
namespace
Lucene
{
13
15
class
LPPAPI
StringReader
:
public
Reader
{
16
public
:
18
StringReader
(
const
String&
str
);
19
virtual
~StringReader
();
20
21
LUCENE_CLASS
(
StringReader
);
22
23
protected
:
24
String
str
;
25
int32_t
position
;
26
27
public
:
29
virtual
int32_t
read
();
30
32
virtual
int32_t
read
(
wchar_t
* buffer, int32_t offset, int32_t
length
);
33
35
virtual
void
close
();
36
38
virtual
bool
markSupported
();
39
41
virtual
void
reset
();
42
44
virtual
int64_t
length
();
45
};
46
47
}
48
49
#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Reader.h
Lucene::Reader::Reader
Reader()
Lucene::StringReader::markSupported
virtual bool markSupported()
Tell whether this stream supports the mark() operation.
Lucene::StringReader::length
virtual int64_t length()
The number of bytes in the stream.
Lucene::StringReader::StringReader
StringReader(const String &str)
Creates a new StringReader, given the String to read from.
Lucene::StringReader::close
virtual void close()
Close the stream.
Lucene::StringReader::position
int32_t position
Definition
StringReader.h:25
Lucene::StringReader::~StringReader
virtual ~StringReader()
Lucene::StringReader::read
virtual int32_t read(wchar_t *buffer, int32_t offset, int32_t length)
Read characters into a portion of an array.
Lucene::StringReader::read
virtual int32_t read()
Read a single character.
Lucene::StringReader::str
String str
Definition
StringReader.h:24
Lucene::StringReader::reset
virtual void reset()
Reset the stream.
Lucene
Definition
AbstractAllTermDocs.h:12
clucene.sourceforge.net