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, 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 JMSBytesMessage(AMQMessageDelegateFactory delegateFactory)
public void reset()
reset in interface javax.jms.BytesMessagereset 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 long getBodyLength()
throws javax.jms.JMSException
getBodyLength in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic boolean readBoolean()
throws javax.jms.JMSException
readBoolean in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic byte readByte()
throws javax.jms.JMSException
readByte in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readUnsignedByte()
throws javax.jms.JMSException
readUnsignedByte in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic short readShort()
throws javax.jms.JMSException
readShort in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readUnsignedShort()
throws javax.jms.JMSException
readUnsignedShort in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic char readChar()
throws javax.jms.JMSException
readChar in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readInt()
throws javax.jms.JMSException
readInt in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic long readLong()
throws javax.jms.JMSException
readLong in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic float readFloat()
throws javax.jms.JMSException
readFloat in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic double readDouble()
throws javax.jms.JMSException
readDouble in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic String readUTF() throws javax.jms.JMSException
readUTF in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readBytes(byte[] bytes)
throws javax.jms.JMSException
readBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readBytes(byte[] bytes,
int maxLength)
throws javax.jms.JMSException
readBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeBoolean(boolean b)
throws javax.jms.JMSException
writeBoolean in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeByte(byte b)
throws javax.jms.JMSException
writeByte in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeShort(short i)
throws javax.jms.JMSException
writeShort in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeChar(char c)
throws javax.jms.JMSException
writeChar in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeInt(int i)
throws javax.jms.JMSException
writeInt in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeLong(long l)
throws javax.jms.JMSException
writeLong in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeFloat(float v)
throws javax.jms.JMSException
writeFloat in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeDouble(double v)
throws javax.jms.JMSException
writeDouble in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeUTF(String string) throws javax.jms.JMSException
writeUTF in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeBytes(byte[] bytes)
throws javax.jms.JMSException
writeBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeBytes(byte[] bytes,
int offset,
int length)
throws javax.jms.JMSException
writeBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeObject(Object object) throws javax.jms.JMSException
writeObject in interface javax.jms.BytesMessagejavax.jms.JMSExceptionCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.