|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::io::ByteBufferReader Class Reference#include <ByteBufferReader.h>
Inheritance diagram for acdk::io::ByteBufferReader:
List of all members.
Detailed Description
Reader interface for a ReadByteBuffer.
Constructor & Destructor Documentation
acdk::io::ByteBufferReader::ByteBufferReader |
( |
IN(RReadByteBuffer) |
buffer |
) |
[inline] |
|
Member Function Documentation
virtual int acdk::io::ByteBufferReader::available |
( |
|
) |
[inline, virtual] |
|
|
returns the number of bytes available in this stream before blocking Some Reader always return 0
Reimplemented from acdk::io::Reader. |
void acdk::io::ByteBufferReader::close |
( |
|
) |
[inline, virtual] |
|
|
closes this Reader.
Note: Some Reader must be closed explicitaly Note: Reader implementation must be avare from closing a reader more than one
Reimplemented from acdk::io::Reader. |
RStorage acdk::io::ByteBufferReader::getReaderStorage |
( |
|
) |
[inline, virtual] |
|
virtual void acdk::io::ByteBufferReader::mark |
( |
int |
readAheadLimit |
) |
[inline, virtual] |
|
virtual bool acdk::io::ByteBufferReader::markSupported |
( |
|
) |
[inline, virtual] |
|
virtual int acdk::io::ByteBufferReader::read |
( |
byte * |
buffer, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
[virtual] |
|
virtual int acdk::io::ByteBufferReader::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::AbstractReader. |
virtual int acdk::io::ByteBufferReader::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 void acdk::io::ByteBufferReader::reset |
( |
|
) |
[virtual] |
|
virtual jlong acdk::io::ByteBufferReader::seek |
( |
SeekPos |
seekrel, |
|
|
jlong |
seekpos |
|
) |
[virtual] |
|
virtual jlong acdk::io::ByteBufferReader::skip |
( |
jlong |
n |
) |
[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
|
|