public class JMSBytesMessage extends AbstractBytesTypedMessage implements javax.jms.BytesMessage
Modifier and Type | Field and Description |
---|---|
static String |
MIME_TYPE |
Constructor and Description |
---|
JMSBytesMessage(AMQMessageDelegateFactory delegateFactory) |
Modifier and Type | Method and Description |
---|---|
void |
clearBody() |
long |
getBodyLength() |
ByteBuffer |
getData() |
protected String |
getMimeType() |
boolean |
readBoolean() |
byte |
readByte() |
int |
readBytes(byte[] bytes) |
int |
readBytes(byte[] bytes,
int maxLength) |
char |
readChar()
Note that this method reads a unicode character as two bytes from the stream
|
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
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 |
writeUTF(String string) |
checkReadable, checkWritable, setReadable, toBodyString
acknowledge, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acknowledge, 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, setStringProperty
public static final String MIME_TYPE
public JMSBytesMessage(AMQMessageDelegateFactory delegateFactory)
public void reset()
reset
in interface javax.jms.BytesMessage
reset
in class AbstractBytesTypedMessage
public void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
clearBody
in class AbstractBytesTypedMessage
javax.jms.JMSException
protected String getMimeType()
getMimeType
in class AbstractJMSMessage
public ByteBuffer getData() throws javax.jms.JMSException
getData
in class AbstractJMSMessage
javax.jms.JMSException
public long getBodyLength() throws javax.jms.JMSException
getBodyLength
in interface javax.jms.BytesMessage
javax.jms.JMSException
public boolean readBoolean() throws javax.jms.JMSException
readBoolean
in interface javax.jms.BytesMessage
javax.jms.JMSException
public byte readByte() throws javax.jms.JMSException
readByte
in interface javax.jms.BytesMessage
javax.jms.JMSException
public int readUnsignedByte() throws javax.jms.JMSException
readUnsignedByte
in interface javax.jms.BytesMessage
javax.jms.JMSException
public short readShort() throws javax.jms.JMSException
readShort
in interface javax.jms.BytesMessage
javax.jms.JMSException
public int readUnsignedShort() throws javax.jms.JMSException
readUnsignedShort
in interface javax.jms.BytesMessage
javax.jms.JMSException
public char readChar() throws javax.jms.JMSException
readChar
in interface javax.jms.BytesMessage
javax.jms.JMSException
public int readInt() throws javax.jms.JMSException
readInt
in interface javax.jms.BytesMessage
javax.jms.JMSException
public long readLong() throws javax.jms.JMSException
readLong
in interface javax.jms.BytesMessage
javax.jms.JMSException
public float readFloat() throws javax.jms.JMSException
readFloat
in interface javax.jms.BytesMessage
javax.jms.JMSException
public double readDouble() throws javax.jms.JMSException
readDouble
in interface javax.jms.BytesMessage
javax.jms.JMSException
public String readUTF() throws javax.jms.JMSException
readUTF
in interface javax.jms.BytesMessage
javax.jms.JMSException
public int readBytes(byte[] bytes) throws javax.jms.JMSException
readBytes
in interface javax.jms.BytesMessage
javax.jms.JMSException
public int readBytes(byte[] bytes, int maxLength) throws javax.jms.JMSException
readBytes
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeBoolean(boolean b) throws javax.jms.JMSException
writeBoolean
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeByte(byte b) throws javax.jms.JMSException
writeByte
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeShort(short i) throws javax.jms.JMSException
writeShort
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeChar(char c) throws javax.jms.JMSException
writeChar
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeInt(int i) throws javax.jms.JMSException
writeInt
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeLong(long l) throws javax.jms.JMSException
writeLong
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeFloat(float v) throws javax.jms.JMSException
writeFloat
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeDouble(double v) throws javax.jms.JMSException
writeDouble
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeUTF(String string) throws javax.jms.JMSException
writeUTF
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeBytes(byte[] bytes) throws javax.jms.JMSException
writeBytes
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeBytes(byte[] bytes, int offset, int length) throws javax.jms.JMSException
writeBytes
in interface javax.jms.BytesMessage
javax.jms.JMSException
public void writeObject(Object object) throws javax.jms.JMSException
writeObject
in interface javax.jms.BytesMessage
javax.jms.JMSException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.