#include <ByteArrayInputStream.h>
Inheritance diagram for activemq::io::ByteArrayInputStream:
Public Member Functions | |
ByteArrayInputStream (void) | |
ByteArrayInputStream (const unsigned char *buffer, int bufferSize) | |
virtual | ~ByteArrayInputStream (void) |
virtual void | setByteArray (const unsigned char *buffer, int bufferSize) |
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 int | available () const |
virtual unsigned char | read () throw ( IOException ) |
virtual int | read (unsigned char *buffer, const int bufferSize) throw (IOException) |
virtual void | close () throw (cms::CMSException) |
Private Attributes | |
std::vector< unsigned char > | buffer |
std::vector< unsigned char >::const_iterator | pos |
concurrent::Mutex | mutex |
|
Default Constructor |
|
Constructor
|
|
|
|
Indcates the number of bytes avaialable.
Implements activemq::io::InputStream. |
|
Closes the target input stream.
|
|
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. |
|
Reads an array of bytes from the buffer.
Implements activemq::io::InputStream. |
|
Reads a single byte from the buffer.
Implements activemq::io::InputStream. |
|
Sets the data that this reader uses, replaces any existing data and resets to beginning of the buffer.
|
|
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. |
|
The Array of Bytes to read from. |
|
Synchronization object. |
|
iterator to current position in buffer. |