2005/5/9

     
 

class BinaryObjectReader

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::io::BinaryObjectReader Class Reference

#include <BinaryObjectReader.h>

Inheritance diagram for acdk::io::BinaryObjectReader:

acdk::io::AbstractObjectReader acdk::io::AbstractFilterReader acdk::io::ObjectReader acdk::io::AbstractReader acdk::io::FilterReader acdk::lang::Object acdk::io::Reader acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::java::serialization::JavaObjectReader List of all members.

Detailed Description

Implementation to read Objects and basic type in binary format.

API: ACDK<br/>

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.17
Date:
Date
2005/04/09 19:26:44


Public Member Functions

 BinaryObjectReader (RReader in, int flags=SerializeDefaultFlags)
virtual bool readBoolean ()
 From acdk::io::DataReader.

virtual char readChar ()
virtual uc2char readUcChar ()
virtual short readShort ()
virtual int readInt ()
virtual jlong readLong ()
virtual float readFloat ()
virtual double readDouble ()
RString readStringImpl ()
int read ()
 read a single byte from stream

int read (IN(RbyteArray) array, int offset=0, int len=-1)
 read the len bytes into buffer at offset of the buffer

virtual int read (byte *buffer, int offset, int len)
virtual RString readTagStart (IN(RString) key, IN(RString) value=Nil)
 Reads start of Tag.

virtual RString readTagEnd (IN(RString) key, IN(RString) value=Nil)
 Writes end of Tag.

virtual RClass readClassId ()
 reads from the stream the acdk::lang::Object Id (for example the fully qualified class name) and create an new acdk::lang::Object if withSerialVersionUID() is true, the should be read and checked agains local class


Private Attributes

BinaryDataReader _binin


Constructor & Destructor Documentation

acdk::io::BinaryObjectReader::BinaryObjectReader RReader  in,
int  flags = SerializeDefaultFlags
[inline]
 


Member Function Documentation

virtual int acdk::io::BinaryObjectReader::read byte buffer,
int  offset,
int  len
[inline, virtual]
 

See also:
other read(RbyteArray, int, int)

Reimplemented from acdk::io::AbstractFilterReader.

int acdk::io::BinaryObjectReader::read IN(RbyteArray array,
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::AbstractFilterReader.

int acdk::io::BinaryObjectReader::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::AbstractFilterReader.

virtual bool acdk::io::BinaryObjectReader::readBoolean  )  [inline, virtual]
 

From acdk::io::DataReader.

Implements acdk::io::AbstractObjectReader.

virtual char acdk::io::BinaryObjectReader::readChar  )  [inline, virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual RClass acdk::io::BinaryObjectReader::readClassId  )  [virtual]
 

reads from the stream the acdk::lang::Object Id (for example the fully qualified class name) and create an new acdk::lang::Object if withSerialVersionUID() is true, the should be read and checked agains local class

Implements acdk::io::AbstractObjectReader.

virtual double acdk::io::BinaryObjectReader::readDouble  )  [inline, virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual float acdk::io::BinaryObjectReader::readFloat  )  [inline, virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual int acdk::io::BinaryObjectReader::readInt  )  [inline, virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual jlong acdk::io::BinaryObjectReader::readLong  )  [inline, virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual short acdk::io::BinaryObjectReader::readShort  )  [inline, virtual]
 

Implements acdk::io::AbstractObjectReader.

RString acdk::io::BinaryObjectReader::readStringImpl  )  [inline, virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual RString acdk::io::BinaryObjectReader::readTagEnd IN(RString key,
IN(RString value = Nil
[virtual]
 

Writes end of Tag.

For example '' for a int type. This function will be called by writeObject if the object should be written with tags

Implements acdk::io::AbstractObjectReader.

virtual RString acdk::io::BinaryObjectReader::readTagStart IN(RString key,
IN(RString value = Nil
[virtual]
 

Reads start of Tag.

For example '' for a int type in a XML style Reader. This function will be called by writeObject if the object should be written with tags if the expected tag does not exists, throw ObjectStreamException

Implements acdk::io::AbstractObjectReader.

virtual uc2char acdk::io::BinaryObjectReader::readUcChar  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.


Member Data Documentation

BinaryDataReader acdk::io::BinaryObjectReader::_binin [private]