activemq::io::EndianReader Class Reference

#include <EndianReader.h>

Inheritance diagram for activemq::io::EndianReader:

activemq::io::Reader List of all members.

Public Member Functions

 EndianReader ()
 EndianReader (InputStream *is)
virtual ~EndianReader ()
virtual void setInputStream (InputStream *is)
virtual InputStreamgetInputStream ()
virtual int read (unsigned char *buffer, int count) throw ( IOException )
virtual unsigned char readByte () throw ( IOException )
virtual double readDouble () throw ( IOException )
virtual float readFloat () throw ( IOException )
virtual uint16_t readUInt16 () throw ( IOException )
virtual uint32_t readUInt32 () throw ( IOException )
virtual uint64_t readUInt64 () throw ( IOException )

Private Attributes

InputStreaminputStream

Constructor & Destructor Documentation

EndianReader::EndianReader  ) 
 

Constructor.

EndianReader::EndianReader InputStream is  ) 
 

Constructor.

Parameters:
is the target input stream.

EndianReader::~EndianReader  )  [virtual]
 

Destructor.


Member Function Documentation

virtual InputStream* activemq::io::EndianReader::getInputStream void   )  [inline, virtual]
 

Gets the target input stream.

Implements activemq::io::Reader.

int EndianReader::read unsigned char *  buffer,
int  count
throw ( IOException ) [virtual]
 

Attempts to read an array of bytes from the stream.

Parameters:
buffer The target byte buffer.
count The number of bytes to read.
Returns:
The number of bytes read.
Exceptions:
IOException thrown if an error occurs.

Implements activemq::io::Reader.

unsigned char EndianReader::readByte  )  throw ( IOException ) [virtual]
 

Attempts to read a byte from the input stream

Returns:
The byte.
Exceptions:
IOException thrown if an error occurs.

Implements activemq::io::Reader.

double EndianReader::readDouble  )  throw ( IOException ) [virtual]
 

Attempts to read a double from the input stream

Returns:
The byte.
Exceptions:
IOException thrown if an error occurs.

float EndianReader::readFloat  )  throw ( IOException ) [virtual]
 

Attempts to read a float from the input stream

Returns:
The byte.
Exceptions:
IOException thrown if an error occurs.

uint16_t EndianReader::readUInt16  )  throw ( IOException ) [virtual]
 

Attempts to read a short from the input stream

Returns:
The byte.
Exceptions:
IOException thrown if an error occurs.

uint32_t EndianReader::readUInt32  )  throw ( IOException ) [virtual]
 

Attempts to read an int from the input stream

Returns:
The byte.
Exceptions:
IOException thrown if an error occurs.

uint64_t EndianReader::readUInt64  )  throw ( IOException ) [virtual]
 

Attempts to read a long long from the input stream

Returns:
The byte.
Exceptions:
IOException thrown if an error occurs.

virtual void activemq::io::EndianReader::setInputStream InputStream is  )  [inline, virtual]
 

Sets the target input stream.

Implements activemq::io::Reader.


Member Data Documentation

InputStream* activemq::io::EndianReader::inputStream [private]
 

The target input stream.


The documentation for this class was generated from the following files:
Generated on Thu Aug 3 18:03:33 2006 for activemq-cpp by  doxygen 1.4.5