|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::io::LineNumberReader Class Reference#include <LineNumberReader.h>
Inheritance diagram for acdk::io::LineNumberReader:
List of all members.
Detailed Description
A filter reader provides information about line and column of current read position.
- See also:
- acdk::io::LineNumberCharReader for character based LineNumberReader
- Author:
- Roger Rene Kommer (mailto:kommer@artefaktur.com)
- Version:
- Revision
- 1.15
- Date:
- Date
- 2005/04/09 19:26:45
Constructor & Destructor Documentation
Member Function Documentation
int acdk::io::LineNumberReader::_read |
( |
|
) |
[private] |
|
int acdk::io::LineNumberReader::getBytePos |
( |
|
) |
[inline] |
|
|
provides information of current readed byte position
|
virtual int acdk::io::LineNumberReader::getLineNumber |
( |
|
) |
[inline, virtual] |
|
|
return the line number of current read position
|
int acdk::io::LineNumberReader::getXPos |
( |
|
) |
[inline] |
|
|
return the column position
|
virtual void acdk::io::LineNumberReader::mark |
( |
int |
readlimit |
) |
[virtual] |
|
virtual int acdk::io::LineNumberReader::read |
( |
byte * |
buffer, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
[inline, virtual] |
|
virtual int acdk::io::LineNumberReader::read |
( |
IN(RbyteArray) |
buffer, |
|
|
int |
offset = 0, |
|
|
int |
len = -1 |
|
) |
[virtual] |
|
|
read the len bytes into buffer at offset of the buffer
- Parameters:
-
buffer | where to write the bytes |
offset | offset to write into buffer |
len | how many bytes to read. if == -1 read into many bytes, that fits into buffer (buffer->length() - offset) `` |
- Returns:
- number of bytes readed. may less than input if EOS is reached
- Exceptions:
-
EOF | exception, if trying to read behind EOS |
Reimplemented from acdk::io::AbstractFilterReader. |
virtual int acdk::io::LineNumberReader::read |
( |
|
) |
[virtual] |
|
|
read a single byte from stream
- Returns:
- the byte readed or -1 if EOS.
- Exceptions:
-
EOF | exception, if trying to read behind EOS |
Reimplemented from acdk::io::AbstractFilterReader. |
virtual void acdk::io::LineNumberReader::reset |
( |
|
) |
[virtual] |
|
virtual void acdk::io::LineNumberReader::setLineNumber |
( |
int |
ln |
) |
[inline, virtual] |
|
Member Data Documentation
|
0 not eof, 1 at eof 2 behind eof
|
|
|