#include <ByteArrayOutputStream.h>
Inheritance diagram for activemq::io::ByteArrayOutputStream:
Public Member Functions | |
ByteArrayOutputStream (void) | |
virtual | ~ByteArrayOutputStream (void) |
virtual const unsigned char * | getByteArray (void) const |
virtual int | getByteArraySize (void) const |
virtual void | lock () throw ( exceptions::ActiveMQException ) |
virtual void | unlock () throw ( exceptions::ActiveMQException ) |
virtual void | wait () throw ( exceptions::ActiveMQException ) |
virtual void | wait (unsigned long millisecs) throw ( exceptions::ActiveMQException ) |
virtual void | notify () throw ( exceptions::ActiveMQException ) |
virtual void | notifyAll () throw ( exceptions::ActiveMQException ) |
virtual void | write (const unsigned char c) throw ( IOException ) |
virtual void | write (const unsigned char *buffer, const int len) throw ( IOException ) |
virtual void | flush (void) throw ( IOException ) |
virtual void | clear (void) throw ( IOException ) |
void | close (void) throw ( cms::CMSException ) |
Private Attributes | |
std::vector< unsigned char > | buffer |
concurrent::Mutex | mutex |
|
Default Constructor |
|
Destructor |
|
Clear current Stream contents
|
|
Invokes close on the target output stream.
|
|
Invokes flush on the target output stream, has no affect.
Implements activemq::io::OutputStream. |
|
Get a snapshot of the data
|
|
Get the Size of the Internal Buffer
|
|
Waits on a signal from this object, which is generated by a call to Notify. Must have this object locked before calling.
Implements activemq::concurrent::Synchronizable. |
|
Signals a waiter on this object that it can now wake up and continue. Must have this object locked before calling.
Implements activemq::concurrent::Synchronizable. |
|
Signals the waiters on this object that it can now wake up and continue. Must have this object locked before calling.
Implements activemq::concurrent::Synchronizable. |
|
Unlocks the object.
Implements activemq::concurrent::Synchronizable. |
|
Waits on a signal from this object, which is generated by a call to Notify. Must have this object locked before calling. This wait will timeout after the specified time interval.
Implements activemq::concurrent::Synchronizable. |
|
Waits on a signal from this object, which is generated by a call to Notify. Must have this object locked before calling.
Implements activemq::concurrent::Synchronizable. |
|
Writes an array of bytes to the output stream.
Implements activemq::io::OutputStream. |
|
Writes a single byte to the output stream.
Implements activemq::io::OutputStream. |
|
The Array of Bytes to read from. |
|
Synchronization object. |