public class JMSStreamMessage extends AbstractBytesTypedMessage implements javax.jms.StreamMessage
| Modifier and Type | Field and Description |
|---|---|
static String |
MIME_TYPE |
| Constructor and Description |
|---|
JMSStreamMessage(AMQMessageDelegateFactory delegateFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBody() |
ByteBuffer |
getData() |
protected String |
getMimeType() |
boolean |
readBoolean() |
byte |
readByte() |
int |
readBytes(byte[] bytes) |
char |
readChar()
Note that this method reads a unicode character as two bytes from the stream
|
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
Object |
readObject() |
short |
readShort() |
String |
readString() |
void |
reset() |
void |
writeBoolean(boolean b) |
void |
writeByte(byte b) |
void |
writeBytes(byte[] bytes) |
void |
writeBytes(byte[] bytes,
int offset,
int length) |
void |
writeChar(char c) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int i) |
void |
writeLong(long l) |
void |
writeObject(Object object) |
void |
writeShort(short i) |
void |
writeString(String string) |
checkReadable, checkWritable, setReadable, toBodyStringacknowledge, acknowledgeThis, clearProperties, getAMQSession, getBooleanProperty, getByteProperty, getContentType, getDelegate, getDeliveryTag, getDoubleProperty, getEncoding, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getReplyToString, getShortProperty, getStringProperty, prepareForSending, propertyExists, removeProperty, setAMQSession, setBooleanProperty, setByteProperty, setContentType, setDoubleProperty, setEncoding, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReceivedFromServer, setShortProperty, setStringProperty, toHeaderString, toStringclone, 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 static final String MIME_TYPE
public JMSStreamMessage(AMQMessageDelegateFactory delegateFactory)
public void reset()
reset in interface javax.jms.StreamMessagereset in class AbstractBytesTypedMessagepublic void clearBody()
throws javax.jms.JMSException
clearBody in interface javax.jms.MessageclearBody in class AbstractBytesTypedMessagejavax.jms.JMSExceptionprotected String getMimeType()
getMimeType in class AbstractJMSMessagepublic ByteBuffer getData() throws javax.jms.JMSException
getData in class AbstractJMSMessagejavax.jms.JMSExceptionpublic boolean readBoolean()
throws javax.jms.JMSException
readBoolean in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic byte readByte()
throws javax.jms.JMSException
readByte in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic short readShort()
throws javax.jms.JMSException
readShort in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic char readChar()
throws javax.jms.JMSException
readChar in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic int readInt()
throws javax.jms.JMSException
readInt in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic long readLong()
throws javax.jms.JMSException
readLong in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic float readFloat()
throws javax.jms.JMSException
readFloat in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic double readDouble()
throws javax.jms.JMSException
readDouble in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic String readString() throws javax.jms.JMSException
readString in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic int readBytes(byte[] bytes)
throws javax.jms.JMSException
readBytes in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic Object readObject() throws javax.jms.JMSException
readObject in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeBoolean(boolean b)
throws javax.jms.JMSException
writeBoolean in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeByte(byte b)
throws javax.jms.JMSException
writeByte in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeShort(short i)
throws javax.jms.JMSException
writeShort in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeChar(char c)
throws javax.jms.JMSException
writeChar in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeInt(int i)
throws javax.jms.JMSException
writeInt in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeLong(long l)
throws javax.jms.JMSException
writeLong in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeFloat(float v)
throws javax.jms.JMSException
writeFloat in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeDouble(double v)
throws javax.jms.JMSException
writeDouble in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeString(String string) throws javax.jms.JMSException
writeString in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeBytes(byte[] bytes)
throws javax.jms.JMSException
writeBytes in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeBytes(byte[] bytes,
int offset,
int length)
throws javax.jms.JMSException
writeBytes in interface javax.jms.StreamMessagejavax.jms.JMSExceptionpublic void writeObject(Object object) throws javax.jms.JMSException
writeObject in interface javax.jms.StreamMessagejavax.jms.JMSExceptionCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.