|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::io::CharToByteReader Class Reference#include <CharToByteReader.h>
Inheritance diagram for acdk::io::CharToByteReader:
List of all members.
Detailed Description
Reads from a CharReader and encodes it to a Reader.
- Author:
- Roger Rene Kommer (mailto:kommer@artefaktur.com)
- Version:
- Revision
- 1.7
- Date:
- Date
- 2005/03/01 10:12:47
Constructor & Destructor Documentation
Member Function Documentation
virtual int acdk::io::CharToByteReader::available |
( |
|
) |
[inline, virtual] |
|
|
returns the number of bytes available in this stream before blocking Some Reader always return 0
Reimplemented from acdk::io::Reader. |
int acdk::io::CharToByteReader::read |
( |
byte * |
buffer, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
[inline, virtual] |
|
int acdk::io::CharToByteReader::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::CharToByteReader::read |
( |
|
) |
[inline, 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 void acdk::io::CharToByteReader::reset |
( |
|
) |
[inline, virtual] |
|
virtual jlong acdk::io::CharToByteReader::seek |
( |
SeekPos |
seekrel, |
|
|
jlong |
seekpos |
|
) |
[inline, virtual] |
|
virtual jlong acdk::io::CharToByteReader::skip |
( |
jlong |
n |
) |
[inline, virtual] |
|
|
Move forwart into the stream.
- Returns:
- how many bytes skipped. May less then input, in case EOS is reached
Reimplemented from acdk::io::AbstractReader. |
Member Data Documentation
|
|