Class WmBytesMessageImpl

    • Constructor Detail

      • WmBytesMessageImpl

        public WmBytesMessageImpl()
                           throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • WmBytesMessageImpl

        protected WmBytesMessageImpl​(TransportMessage container)
      • WmBytesMessageImpl

        protected WmBytesMessageImpl​(javax.jms.BytesMessage sourceMsg)
                              throws javax.jms.JMSException

        this constructor is used for Message interoperability

        Throws:
        javax.jms.JMSException
    • Method Detail

      • getBodyLength

        public long getBodyLength()
                           throws javax.jms.JMSException
        Specified by:
        getBodyLength in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readBoolean

        public boolean readBoolean()
                            throws javax.jms.JMSException
        Specified by:
        readBoolean in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readByte

        public byte readByte()
                      throws javax.jms.JMSException
        Specified by:
        readByte in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readUnsignedByte

        public int readUnsignedByte()
                             throws javax.jms.JMSException
        Specified by:
        readUnsignedByte in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readShort

        public short readShort()
                        throws javax.jms.JMSException
        Specified by:
        readShort in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readUnsignedShort

        public int readUnsignedShort()
                              throws javax.jms.JMSException
        Specified by:
        readUnsignedShort in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readChar

        public char readChar()
                      throws javax.jms.JMSException
        Specified by:
        readChar in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readInt

        public int readInt()
                    throws javax.jms.JMSException
        Specified by:
        readInt in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readLong

        public long readLong()
                      throws javax.jms.JMSException
        Specified by:
        readLong in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readFloat

        public float readFloat()
                        throws javax.jms.JMSException
        Specified by:
        readFloat in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readDouble

        public double readDouble()
                          throws javax.jms.JMSException
        Specified by:
        readDouble in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readUTF

        public java.lang.String readUTF()
                                 throws javax.jms.JMSException
        Specified by:
        readUTF in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readBytes

        public int readBytes​(byte[] dest)
                      throws javax.jms.JMSException
        Specified by:
        readBytes in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • readBytes

        public int readBytes​(byte[] dest,
                             int len)
                      throws javax.jms.JMSException
        Specified by:
        readBytes in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeBoolean

        public void writeBoolean​(boolean value)
                          throws javax.jms.JMSException
        Specified by:
        writeBoolean in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeByte

        public void writeByte​(byte value)
                       throws javax.jms.JMSException
        Specified by:
        writeByte in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeShort

        public void writeShort​(short value)
                        throws javax.jms.JMSException
        Specified by:
        writeShort in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeChar

        public void writeChar​(char value)
                       throws javax.jms.JMSException
        Specified by:
        writeChar in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeInt

        public void writeInt​(int value)
                      throws javax.jms.JMSException
        Specified by:
        writeInt in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeLong

        public void writeLong​(long value)
                       throws javax.jms.JMSException
        Specified by:
        writeLong in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeFloat

        public void writeFloat​(float value)
                        throws javax.jms.JMSException
        Specified by:
        writeFloat in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeDouble

        public void writeDouble​(double value)
                         throws javax.jms.JMSException
        Specified by:
        writeDouble in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeUTF

        public void writeUTF​(java.lang.String value)
                      throws javax.jms.JMSException
        Specified by:
        writeUTF in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeBytes

        public void writeBytes​(byte[] value)
                        throws javax.jms.JMSException
        Specified by:
        writeBytes in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeBytes

        public void writeBytes​(byte[] value,
                               int offset,
                               int len)
                        throws javax.jms.JMSException
        Specified by:
        writeBytes in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • writeObject

        public void writeObject​(java.lang.Object value)
                         throws javax.jms.JMSException
        Specified by:
        writeObject in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • reset

        public void reset()
                   throws javax.jms.JMSException
        Specified by:
        reset in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException
      • clearBody

        public void clearBody()
                       throws javax.jms.JMSException
        Description copied from class: WmMessageImpl
        Clears out the message body. Clearing a message's body does not clear its header values or property entries.

        If this message body was read-only, calling this method leaves the message body in the same state as an empty body in a newly created message.

        Specified by:
        clearBody in interface javax.jms.Message
        Overrides:
        clearBody in class WmMessageImpl
        Throws:
        javax.jms.JMSException - if the JMS provider fails to clear the message body due to some internal error.
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class WmMessageImpl
        Throws:
        java.io.IOException
        See Also:
        Externalizable.writeExternal(java.io.ObjectOutput)
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class WmMessageImpl
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
        See Also:
        Externalizable.readExternal(java.io.ObjectInput)
      • equals

        public boolean equals​(java.lang.Object obj)
        Checks if two Messages are equal
        Overrides:
        equals in class WmMessageImpl
        See Also:
        Object.equals(Object)
      • hashCode

        public int hashCode()
        Calculates hash code for this object.
        Overrides:
        hashCode in class WmMessageImpl
        See Also:
        Object.hashCode()