1
/*------------------------------------------------------------------------------
2
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
4
* Distributable under the terms of either the Apache License (Version 2.0) or
5
* the GNU Lesser General Public License, as specified in the COPYING file.
6
------------------------------------------------------------------------------*/
7
#ifndef _lucene_util_FastCharStream_
8
#define _lucene_util_FastCharStream_
11
CL_CLASS_DEF(util,BufferedReader)
15
/** Ported implementation of the FastCharStream class. */
18
static const int32_t maxRewindSize;
24
// read character from stream throws an exception on error
25
void readChar(TCHAR &);
27
BufferedReader* input;
29
/// Initializes a new instance of the FastCharStream class LUCENE_EXPORT.
30
FastCharStream(BufferedReader* reader);
31
virtual ~FastCharStream();
35
/// Returns the next TCHAR from the stream.
40
/// Returns the current top TCHAR from the input stream without removing it.
44
/// Returns <b>True</b> if the end of stream was reached.
47
/// Gets the current column.
48
int32_t Column() const;
50
/// Gets the current line.