Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

PXXNativeDecoder Class Reference

#include <PXXNativeDecoder.h>

Inheritance diagram for PXXNativeDecoder:

PXXVDecoder PXXObject TObject List of all members.

Public Member Functions

 SET_LOGGER ("PXXNativeDecoder")
virtual ~PXXNativeDecoder ()
virtual void Initialize ()
virtual void Dispose ()
virtual Int32b_t ReadBoolean (Bool8b_t &b)
virtual Int32b_t ReadByte (Char8b_t &c)
virtual Int32b_t SkipBytes (Int32b_t n)
virtual Int32b_t ReadShort (Short16b_t &s)
virtual Int32b_t ReadInt (Int32b_t &i)
virtual Int32b_t ReadFloat (Float32b_t &f)
virtual Int32b_t ReadLong (Long64b_t &l)
virtual Int32b_t ReadDouble (Double64b_t &d)
 PXXNativeDecoder ()
Int32b_t ReadAByteFromBuffer (Char8b_t *needle)

Static Public Member Functions

static PXXNativeDecoderPtr GetInstancePtr ()
static Char8b_tGetBuffer ()
static void SetBuffer (const Char8b_t *start, Int32b_t length)

Constructor & Destructor Documentation

virtual PXXNativeDecoder::~PXXNativeDecoder  )  [virtual]
 

Destructor calls Dispose().

PXXNativeDecoder::PXXNativeDecoder  ) 
 

This class is singleton so that constructor should be protected...


Member Function Documentation

virtual void PXXNativeDecoder::Dispose  )  [virtual]
 

Close the file stream and set 0 to the fInputStreamPtr_.

Implements PXXVDecoder.

static Char8b_t* PXXNativeDecoder::GetBuffer  )  [inline, static]
 

Get/Set methode for input buffer

static PXXNativeDecoderPtr PXXNativeDecoder::GetInstancePtr  )  [static]
 

Static get method. Returns pointer to itself.

virtual void PXXNativeDecoder::Initialize  )  [virtual]
 

Initialize a decoder. It open the input file.

Implements PXXVDecoder.

Int32b_t PXXNativeDecoder::ReadAByteFromBuffer Char8b_t needle  ) 
 

Read one byte from bytebuffer or file and store it to the needle.

virtual Int32b_t PXXNativeDecoder::ReadBoolean Bool8b_t b  )  [virtual]
 

Reads boolean(1byte if the JAVA binary is written by java.io.DataOutput interface) and set it to the argument. true if that byte is nonzero, false if that byte is zero.

Returns:
int number of bytes actually read

Implements PXXVDecoder.

virtual Int32b_t PXXNativeDecoder::ReadByte Char8b_t c  )  [virtual]
 

Reads one input byte and set it to the argument. The byte is treated as a signed value in the range -128 through 127, inclusive.

Returns:
int number of bytes actually read

Implements PXXVDecoder.

virtual Int32b_t PXXNativeDecoder::ReadDouble Double64b_t d  )  [virtual]
 

Reads eight input bytes and set it to the argument.

Returns:
int number of bytes actually read

Implements PXXVDecoder.

virtual Int32b_t PXXNativeDecoder::ReadFloat Float32b_t f  )  [virtual]
 

Reads four input bytes and set it to the argument.

Returns:
int number of bytes actually read

Implements PXXVDecoder.

virtual Int32b_t PXXNativeDecoder::ReadInt Int32b_t i  )  [virtual]
 

Reads four input bytes and set it to the argument.

Returns:
int number of bytes actually read

Implements PXXVDecoder.

virtual Int32b_t PXXNativeDecoder::ReadLong Long64b_t l  )  [virtual]
 

Reads eight input bytes and set it to the argument.

Returns:
int number of bytes actually read

Implements PXXVDecoder.

virtual Int32b_t PXXNativeDecoder::ReadShort Short16b_t s  )  [virtual]
 

Reads two input bytes and set it to the argument.

Returns:
int number of bytes actually read

Implements PXXVDecoder.

PXXNativeDecoder::SET_LOGGER "PXXNativeDecoder"   ) 
 

static void PXXNativeDecoder::SetBuffer const Char8b_t start,
Int32b_t  length
[static]
 

virtual Int32b_t PXXNativeDecoder::SkipBytes Int32b_t  n  )  [virtual]
 

Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes. However, it may skip over some smaller number of bytes, possibly zero. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped is only one possibility. Number of bytes skipped is returned.

Parameters:
n the number of bytes to be skipped.
Returns:
the number of bytes actually skipped.

Implements PXXVDecoder.


The documentation for this class was generated from the following file:


Generated on Thu Nov 10 14:06:36 2005 by doxygen version 1.4.1