activemq::io::Writer Class Reference

#include <Writer.h>

Inheritance diagram for activemq::io::Writer:

activemq::io::EndianWriter activemq::transport::CommandWriter activemq::connector::stomp::StompCommandWriter List of all members.

Public Member Functions

virtual ~Writer ()
virtual void setOutputStream (OutputStream *os)=0
virtual OutputStreamgetOutputStream ()=0
virtual void write (const unsigned char *buffer, int count)=0 throw ( IOException )
virtual void writeByte (unsigned char v)=0 throw ( IOException )

Constructor & Destructor Documentation

virtual activemq::io::Writer::~Writer  )  [inline, virtual]
 


Member Function Documentation

virtual OutputStream* activemq::io::Writer::getOutputStream  )  [pure virtual]
 

Gets the target output stream.

Returns:
the output stream currently being used

Implemented in activemq::connector::stomp::StompCommandWriter, and activemq::io::EndianWriter.

virtual void activemq::io::Writer::setOutputStream OutputStream os  )  [pure virtual]
 

Sets the target output stream.

Parameters:
Outputstream to use

Implemented in activemq::connector::stomp::StompCommandWriter, and activemq::io::EndianWriter.

virtual void activemq::io::Writer::write const unsigned char *  buffer,
int  count
throw ( IOException ) [pure 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.

Implemented in activemq::connector::stomp::StompCommandWriter, and activemq::io::EndianWriter.

virtual void activemq::io::Writer::writeByte unsigned char  v  )  throw ( IOException ) [pure virtual]
 

Writes a byte to the output stream.

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

Implemented in activemq::connector::stomp::StompCommandWriter, and activemq::io::EndianWriter.


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