|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::io::ConsoleReader Class Reference#include <ConsoleReader.h>
Inheritance diagram for acdk::io::ConsoleReader:
List of all members.
Detailed Description
Read bytes from a console (standard input) API: ACDK
- Author:
- Roger Rene Kommer (mailto:kommer@artefaktur.com)
- Version:
- Revision
- 1.17
- Date:
- Date
- 2005/04/09 19:26:44
Constructor & Destructor Documentation
acdk::io::ConsoleReader::ConsoleReader |
( |
InChannel |
fd = InvalidInChannel |
) |
|
|
Member Function Documentation
virtual RString acdk::io::ConsoleReader::getDeviceName |
( |
|
) |
[virtual] |
|
virtual bool acdk::io::ConsoleReader::isReadable |
( |
|
) |
[inline, virtual] |
|
virtual bool acdk::io::ConsoleReader::isWriteable |
( |
|
) |
[inline, virtual] |
|
virtual int acdk::io::ConsoleReader::read |
( |
byte * |
buffer, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
[inline, virtual] |
|
virtual int acdk::io::ConsoleReader::read |
( |
IN(RbyteArray) |
buffer, |
|
|
int |
offset = 0, |
|
|
int |
len = -1 |
|
) |
[inline, 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::AbstractReader. |
virtual int acdk::io::ConsoleReader::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::AbstractReader. |
virtual bool acdk::io::ConsoleReader::ready |
( |
|
) |
[virtual] |
|
|
- Returns:
- true, if at least 1 byte can be readed from stream
Reimplemented from acdk::io::Reader. |
virtual void acdk::io::ConsoleReader::reset |
( |
|
) |
[virtual] |
|
virtual jlong acdk::io::ConsoleReader::seek |
( |
SeekPos |
seekrel, |
|
|
jlong |
seekpos |
|
) |
[virtual] |
|
virtual int acdk::io::ConsoleReader::unread |
( |
byte |
ch |
) |
[virtual] |
|
Member Data Documentation
|
|