public class BytesMessageImpl extends MessageImpl implements javax.jms.BytesMessage
BytesMessage implementation.BytesMessage| Constructor and Description |
|---|
BytesMessageImpl()
Creates empty
BytesMessage |
BytesMessageImpl(javax.jms.BytesMessage msg)
Creates
BytesMessage and copies its header, properties and
body from msg |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBody() |
long |
getBodyLength()
Returns body length.
|
boolean |
readBoolean() |
byte |
readByte() |
int |
readBytes(byte[] bytes) |
int |
readBytes(byte[] bytes,
int length) |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
void |
reset() |
void |
writeBoolean(boolean value) |
void |
writeByte(byte value) |
void |
writeBytes(byte[] bytes) |
void |
writeBytes(byte[] bytes,
int offset,
int length) |
void |
writeChar(char value) |
void |
writeDouble(double value) |
void |
writeFloat(float value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeObject(java.lang.Object value) |
void |
writeShort(short value) |
void |
writeUTF(java.lang.String value) |
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, setPropertiesNotWriteable, setShortProperty, setStringPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 BytesMessageImpl()
throws javax.jms.JMSException
BytesMessagejavax.jms.JMSExceptionpublic BytesMessageImpl(javax.jms.BytesMessage msg)
throws javax.jms.JMSException
BytesMessage and copies its header, properties and
body from msg
The state of msg is not changed.msg - message to copy fromjavax.jms.JMSExceptionpublic void reset()
reset in interface javax.jms.BytesMessageBytesMessage.reset()public void clearBody()
throws javax.jms.JMSException
clearBody in interface javax.jms.MessageclearBody in class MessageImpljavax.jms.JMSExceptionMessage.clearBody()public long getBodyLength()
throws javax.jms.JMSException
BytesMessage
interface, version 1.1getBodyLength in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic boolean readBoolean()
throws javax.jms.JMSException
readBoolean in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readBoolean()public byte readByte()
throws javax.jms.JMSException
readByte in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readByte()public int readUnsignedByte()
throws javax.jms.JMSException
readUnsignedByte in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readUnsignedByte()public short readShort()
throws javax.jms.JMSException
readShort in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readShort()public int readUnsignedShort()
throws javax.jms.JMSException
readUnsignedShort in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readUnsignedShort()public char readChar()
throws javax.jms.JMSException
readChar in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readChar()public int readInt()
throws javax.jms.JMSException
readInt in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readInt()public long readLong()
throws javax.jms.JMSException
readLong in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readLong()public float readFloat()
throws javax.jms.JMSException
readFloat in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readFloat()public double readDouble()
throws javax.jms.JMSException
readDouble in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readDouble()public java.lang.String readUTF()
throws javax.jms.JMSException
readUTF in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readUTF()public int readBytes(byte[] bytes)
throws javax.jms.JMSException
readBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readBytes(byte[])public int readBytes(byte[] bytes,
int length)
throws javax.jms.JMSException
readBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.readBytes(byte[], int)public void writeBoolean(boolean value)
throws javax.jms.JMSException
writeBoolean in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeBoolean(boolean)public void writeByte(byte value)
throws javax.jms.JMSException
writeByte in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeByte(byte)public void writeShort(short value)
throws javax.jms.JMSException
writeShort in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeShort(short)public void writeChar(char value)
throws javax.jms.JMSException
writeChar in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeChar(char)public void writeInt(int value)
throws javax.jms.JMSException
writeInt in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeInt(int)public void writeLong(long value)
throws javax.jms.JMSException
writeLong in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeLong(long)public void writeFloat(float value)
throws javax.jms.JMSException
writeFloat in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeFloat(float)public void writeDouble(double value)
throws javax.jms.JMSException
writeDouble in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeDouble(double)public void writeUTF(java.lang.String value)
throws javax.jms.JMSException
writeUTF in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeUTF(java.lang.String)public void writeBytes(byte[] bytes)
throws javax.jms.JMSException
writeBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeBytes(byte[])public void writeBytes(byte[] bytes,
int offset,
int length)
throws javax.jms.JMSException
writeBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeBytes(byte[], int, int)public void writeObject(java.lang.Object value)
throws javax.jms.JMSException
writeObject in interface javax.jms.BytesMessagejavax.jms.JMSExceptionBytesMessage.writeObject(java.lang.Object)