activemq::connector::stomp::StompCommandWriter Class Reference

#include <StompCommandWriter.h>

Inheritance diagram for activemq::connector::stomp::StompCommandWriter:

activemq::transport::CommandWriter activemq::io::Writer List of all members.

Public Member Functions

 StompCommandWriter (void)
 StompCommandWriter (io::OutputStream *os)
virtual ~StompCommandWriter (void)
virtual void setOutputStream (io::OutputStream *os)
virtual io::OutputStreamgetOutputStream (void)
virtual void writeCommand (const transport::Command *command) throw ( transport::CommandIOException )
virtual void write (const unsigned char *buffer, int count) throw ( io::IOException )
virtual void writeByte (unsigned char v) throw ( io::IOException )

Private Member Functions

virtual void write (const char *buffer, int count) throw ( io::IOException )

Private Attributes

io::OutputStreamoutputStream
marshal::Marshaler marshaler

Constructor & Destructor Documentation

StompCommandWriter::StompCommandWriter void   ) 
 

Default Constructor

StompCommandWriter::StompCommandWriter io::OutputStream os  ) 
 

Constructor.

Parameters:
os the target output stream.

virtual activemq::connector::stomp::StompCommandWriter::~StompCommandWriter void   )  [inline, virtual]
 


Member Function Documentation

virtual io::OutputStream* activemq::connector::stomp::StompCommandWriter::getOutputStream void   )  [inline, virtual]
 

Gets the target output stream.

Implements activemq::io::Writer.

virtual void activemq::connector::stomp::StompCommandWriter::setOutputStream io::OutputStream os  )  [inline, virtual]
 

Sets the target output stream.

Implements activemq::io::Writer.

void StompCommandWriter::write const char *  buffer,
int  count
throw ( io::IOException ) [private, virtual]
 

Writes a char array to the output stream.

Parameters:
buffer a char array
count the number of bytes in the array to write.
Exceptions:
IOException thrown if an error occurs.

void StompCommandWriter::write const unsigned char *  buffer,
int  count
throw ( io::IOException ) [virtual]
 

Writes a byte array to the output stream.

Parameters:
buffer a byte array
count the number of bytes in the array to write.
Exceptions:
IOException thrown if an error occurs.

Implements activemq::io::Writer.

void StompCommandWriter::writeByte unsigned char  v  )  throw ( io::IOException ) [virtual]
 

Writes a byte to the output stream.

Parameters:
v The value to be written.
Exceptions:
IOException thrown if an error occurs.

Implements activemq::io::Writer.

void StompCommandWriter::writeCommand const transport::Command command  )  throw ( transport::CommandIOException ) [virtual]
 

Writes a command to the given output stream.

Parameters:
command the command to write.
os the target stream for the write.
Exceptions:
CommandIOException if a problem occurs during the write.

Implements activemq::transport::CommandWriter.


Member Data Documentation

marshal::Marshaler activemq::connector::stomp::StompCommandWriter::marshaler [private]
 

Marshaler of Stomp Commands

io::OutputStream* activemq::connector::stomp::StompCommandWriter::outputStream [private]
 

Target output stream.


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