2005/5/9

     
 

class BinaryDataReader

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

acdk::io::BinaryDataReader Class Reference

#include <BinaryDataReader.h>

Inheritance diagram for acdk::io::BinaryDataReader:

acdk::io::AbstractFilterReader acdk::io::DataReader acdk::io::AbstractReader acdk::io::FilterReader acdk::lang::Object acdk::io::Reader acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Filter to writes Data in Binary format.

Overtakes the role of java.io.DataOutputStream API: ACDK

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.19
Date:
Date
2005/03/01 10:12:47


Public Member Functions

 BinaryDataReader (IN(RReader) in, acdk::lang::Endian end=acdk::lang::BigEndian)
virtual ~BinaryDataReader ()
virtual jlong seek (SeekPos seekrel, jlong seekpos)
 Set stream position in this Reader to given position.

virtual jlong skip (jlong n)
 Move forwart into the stream.

virtual void reset ()
 if mark is set, set stream to mark point otherwise to begin of this stream.

virtual void setIn (IN(RReader) reader)
virtual RStorage getStorage ()
 Gets the storage reader.

virtual RReader getStorageReader ()
virtual bool readBoolean ()
virtual char readChar ()
virtual uc2char readUcChar ()
virtual double readDouble ()
virtual float readFloat ()
virtual int readInt ()
virtual jlong readLong ()
virtual short readShort ()
virtual RString readString ()
virtual RbyteArray readOpaque ()
 writes the oktet array as opaque data with optional encoding

acdk::lang::Endian endian ()
void endian (acdk::lang::Endian end)
virtual int read ()
virtual int read (IN(RbyteArray) buffer, int offset=0, int len=-1)
virtual int read (byte *buffer, int offset, int len)
virtual bool ready ()

Private Attributes

acdk::lang::Endian _endian


Constructor & Destructor Documentation

acdk::io::BinaryDataReader::BinaryDataReader IN(RReader in,
acdk::lang::Endian  end = acdk::lang::BigEndian
[inline]
 

virtual acdk::io::BinaryDataReader::~BinaryDataReader  )  [inline, virtual]
 


Member Function Documentation

void acdk::io::BinaryDataReader::endian acdk::lang::Endian  end  )  [inline]
 

acdk::lang::Endian acdk::io::BinaryDataReader::endian  )  [inline]
 

virtual RStorage acdk::io::BinaryDataReader::getStorage  )  [inline, virtual]
 

Gets the storage reader.

If this contains an FilterReader instead of a Storage, the storage reader of this filter reader will be returned (recursive).

Reimplemented from acdk::io::AbstractFilterReader.

virtual RReader acdk::io::BinaryDataReader::getStorageReader  )  [inline, virtual]
 

Reimplemented from acdk::io::AbstractFilterReader.

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

virtual int acdk::io::AbstractFilterReader::read IN(RbyteArray buffer,
int  offset = 0,
int  len = -1
[inline]
 

virtual int acdk::io::AbstractFilterReader::read  )  [inline]
 

virtual bool acdk::io::BinaryDataReader::readBoolean  )  [virtual]
 

Implements acdk::io::DataReader.

virtual char acdk::io::BinaryDataReader::readChar  )  [virtual]
 

Implements acdk::io::DataReader.

virtual double acdk::io::BinaryDataReader::readDouble  )  [virtual]
 

Implements acdk::io::DataReader.

virtual float acdk::io::BinaryDataReader::readFloat  )  [virtual]
 

Implements acdk::io::DataReader.

virtual int acdk::io::BinaryDataReader::readInt  )  [virtual]
 

Implements acdk::io::DataReader.

virtual jlong acdk::io::BinaryDataReader::readLong  )  [virtual]
 

Implements acdk::io::DataReader.

virtual RbyteArray acdk::io::BinaryDataReader::readOpaque  )  [virtual]
 

writes the oktet array as opaque data with optional encoding

Reimplemented from acdk::io::DataReader.

virtual short acdk::io::BinaryDataReader::readShort  )  [virtual]
 

Implements acdk::io::DataReader.

virtual RString acdk::io::BinaryDataReader::readString  )  [virtual]
 

Implements acdk::io::DataReader.

virtual uc2char acdk::io::BinaryDataReader::readUcChar  )  [virtual]
 

Implements acdk::io::DataReader.

virtual bool acdk::io::AbstractFilterReader::ready  )  [inline]
 

virtual void acdk::io::BinaryDataReader::reset  )  [inline, virtual]
 

if mark is set, set stream to mark point otherwise to begin of this stream.

Reimplemented from acdk::io::AbstractFilterReader.

virtual jlong acdk::io::BinaryDataReader::seek SeekPos  seekrel,
jlong  seekpos
[inline, virtual]
 

Set stream position in this Reader to given position.

Returns:
the absolute position in this stream

Reimplemented from acdk::io::AbstractFilterReader.

virtual void acdk::io::BinaryDataReader::setIn IN(RReader reader  )  [inline, virtual]
 

Reimplemented from acdk::io::AbstractFilterReader.

virtual jlong acdk::io::BinaryDataReader::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::AbstractFilterReader.


Member Data Documentation

acdk::lang::Endian acdk::io::BinaryDataReader::_endian [private]