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


lucene::util::Reader Class Reference

An inline wrapper that reads from Jos van den Oever's jstreams. More...

#include <Reader.h>

Inheritance diagram for lucene::util::Reader:

lucene::util::FileReader lucene::util::StringReader

Public Member Functions

 Reader (jsReader *reader, bool deleteReader)
virtual ~Reader ()
int read ()
int32_t readLine (TCHAR *buffer)
int32_t read (const TCHAR *&start)
 Read at least 1 character, and as much as is conveniently available.
int32_t read (const TCHAR *&start, int32_t len)
int64_t skip (int64_t ntoskip)
int64_t mark (int32_t readAheadlimit)
int64_t reset (int64_t pos)

Data Fields

bool deleteReader
jsReaderreader

Detailed Description

An inline wrapper that reads from Jos van den Oever's jstreams.

Constructor & Destructor Documentation

lucene::util::Reader::Reader ( jsReader reader,
bool  deleteReader 
) [inline]

virtual lucene::util::Reader::~Reader (  )  [inline, virtual]


Member Function Documentation

int lucene::util::Reader::read (  )  [inline]

int32_t lucene::util::Reader::readLine ( TCHAR *  buffer  )  [inline]

int32_t lucene::util::Reader::read ( const TCHAR *&  start  )  [inline]

Read at least 1 character, and as much as is conveniently available.

References jstreams::StreamBase< T >::getError(), and jstreams::StreamBase< T >::read().

int32_t lucene::util::Reader::read ( const TCHAR *&  start,
int32_t  len 
) [inline]

int64_t lucene::util::Reader::skip ( int64_t  ntoskip  )  [inline]

int64_t lucene::util::Reader::mark ( int32_t  readAheadlimit  )  [inline]

int64_t lucene::util::Reader::reset ( int64_t  pos  )  [inline]


Field Documentation


The documentation for this class was generated from the following file:

clucene.sourceforge.net