public class StreamMessageImpl extends MessageImpl implements StreamMessage
L, logDEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE| Constructor and Description |
|---|
StreamMessageImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
bodyToInputStream()
Serialize the body to an input stream.
|
void |
clearBody()
Clears the message and puts it into write mode.
|
MessageImpl |
copy() |
protected void |
copy(StreamMessageImpl newMsg) |
MessageType |
getType()
Returns the type enumeration.
|
void |
readBody(java.io.InputStream is)
Read the body from an input stream.
|
boolean |
readBoolean()
Read a boolean from the stream.
|
byte |
readByte()
Read a byte from the stream.
|
int |
readBytes(byte[] value)
Read a byte array object from the stream.
|
char |
readChar()
Read a character object from the stream.
|
double |
readDouble()
Read a double from the stream.
|
float |
readFloat()
Read a float from the stream.
|
int |
readInt()
Read an integer from the stream.
|
long |
readLong()
Read a long from the stream.
|
java.lang.Object |
readObject()
Reads the next object.
|
short |
readShort()
Read a short from the stream.
|
java.lang.String |
readString()
Read a string from the stream.
|
void |
reset()
Set the stream for reading.
|
void |
setReceive()
Sets the body for reading.
|
java.lang.String |
toString() |
void |
writeBoolean(boolean b)
Writes a boolean to the stream.
|
void |
writeByte(byte b)
Writes a byte to the stream.
|
void |
writeBytes(byte[] buf)
Writes a byte array to the stream.
|
void |
writeBytes(byte[] buf,
int offset,
int length)
Writes a byte array to the stream.
|
void |
writeChar(char ch)
Writes a character to the stream.
|
void |
writeDouble(double d)
Writes a double to the stream.
|
void |
writeFloat(float f)
Writes a float to the stream.
|
void |
writeInt(int i)
Writes an integer to the stream.
|
void |
writeLong(long l)
Writes a long to the stream.
|
void |
writeObject(java.lang.Object obj)
Writes the next object.
|
void |
writeShort(short s)
Writes a short to the stream.
|
void |
writeString(java.lang.String s)
Writes a string to the stream.
|
acknowledge, checkBodyReadable, checkBodyWriteable, checkHeaderWriteable, checkPropertyWriteable, clearProperties, copy, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getProperties, getPropertyNames, getSequence, getShortProperty, getStringProperty, isReserved, propertiesToInputStream, propertyExists, readProperties, setBodyReadOnly, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setSequence, setSession, setShortProperty, setStringProperty, writeBody, writePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringPropertypublic MessageType getType()
getType in class MessageImplpublic void setReceive()
throws JMSException
setReceive in class MessageImplJMSExceptionpublic void reset()
throws JMSException
reset in interface StreamMessageJMSExceptionpublic boolean readBoolean()
throws JMSException
readBoolean in interface StreamMessageJMSExceptionpublic byte readByte()
throws JMSException
readByte in interface StreamMessageJMSExceptionpublic short readShort()
throws JMSException
readShort in interface StreamMessageJMSExceptionpublic int readInt()
throws JMSException
readInt in interface StreamMessageJMSExceptionpublic long readLong()
throws JMSException
readLong in interface StreamMessageJMSExceptionpublic float readFloat()
throws JMSException
readFloat in interface StreamMessageJMSExceptionpublic double readDouble()
throws JMSException
readDouble in interface StreamMessageJMSExceptionpublic char readChar()
throws JMSException
readChar in interface StreamMessageJMSExceptionpublic java.lang.String readString()
throws JMSException
readString in interface StreamMessageJMSExceptionpublic int readBytes(byte[] value)
throws JMSException
readBytes in interface StreamMessageJMSExceptionpublic java.lang.Object readObject()
throws JMSException
readObject in interface StreamMessageJMSExceptionpublic void clearBody()
throws JMSException
clearBody in interface MessageclearBody in class MessageImplJMSExceptionpublic void writeBoolean(boolean b)
throws JMSException
writeBoolean in interface StreamMessageJMSExceptionpublic void writeByte(byte b)
throws JMSException
writeByte in interface StreamMessageJMSExceptionpublic void writeShort(short s)
throws JMSException
writeShort in interface StreamMessageJMSExceptionpublic void writeInt(int i)
throws JMSException
writeInt in interface StreamMessageJMSExceptionpublic void writeLong(long l)
throws JMSException
writeLong in interface StreamMessageJMSExceptionpublic void writeFloat(float f)
throws JMSException
writeFloat in interface StreamMessageJMSExceptionpublic void writeDouble(double d)
throws JMSException
writeDouble in interface StreamMessageJMSExceptionpublic void writeString(java.lang.String s)
throws JMSException
writeString in interface StreamMessageJMSExceptionpublic void writeChar(char ch)
throws JMSException
writeChar in interface StreamMessageJMSExceptionpublic void writeBytes(byte[] buf)
throws JMSException
writeBytes in interface StreamMessageJMSExceptionpublic void writeBytes(byte[] buf,
int offset,
int length)
throws JMSException
writeBytes in interface StreamMessageJMSExceptionpublic void writeObject(java.lang.Object obj)
throws JMSException
writeObject in interface StreamMessageJMSExceptionpublic MessageImpl copy()
copy in class MessageImplprotected void copy(StreamMessageImpl newMsg)
public java.io.InputStream bodyToInputStream()
throws java.io.IOException
bodyToInputStream in class MessageImpljava.io.IOExceptionpublic void readBody(java.io.InputStream is)
throws java.io.IOException,
JMSException
readBody in class MessageImpljava.io.IOExceptionJMSExceptionpublic java.lang.String toString()
toString in class MessageImpl