Class ActiveMQRABytesMessage

  • All Implemented Interfaces:
    javax.jms.BytesMessage, javax.jms.Message

    public class ActiveMQRABytesMessage
    extends ActiveMQRAMessage
    implements javax.jms.BytesMessage
    A wrapper for a message
    • Constructor Detail

      • ActiveMQRABytesMessage

        public ActiveMQRABytesMessage​(javax.jms.BytesMessage message,
                                      ActiveMQRASession session)
        Create a new wrapper
        Parameters:
        message - the message
        session - the session
    • Method Detail

      • getBodyLength

        public long getBodyLength()
                           throws javax.jms.JMSException
        Get body length
        Specified by:
        getBodyLength in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readBoolean

        public boolean readBoolean()
                            throws javax.jms.JMSException
        Read
        Specified by:
        readBoolean in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readByte

        public byte readByte()
                      throws javax.jms.JMSException
        Read
        Specified by:
        readByte in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readBytes

        public int readBytes​(byte[] value,
                             int length)
                      throws javax.jms.JMSException
        Read
        Specified by:
        readBytes in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        length - The length
        Returns:
        The result
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readBytes

        public int readBytes​(byte[] value)
                      throws javax.jms.JMSException
        Read
        Specified by:
        readBytes in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Returns:
        The result
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readChar

        public char readChar()
                      throws javax.jms.JMSException
        Read
        Specified by:
        readChar in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readDouble

        public double readDouble()
                          throws javax.jms.JMSException
        Read
        Specified by:
        readDouble in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readFloat

        public float readFloat()
                        throws javax.jms.JMSException
        Read
        Specified by:
        readFloat in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readInt

        public int readInt()
                    throws javax.jms.JMSException
        Read
        Specified by:
        readInt in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readLong

        public long readLong()
                      throws javax.jms.JMSException
        Read
        Specified by:
        readLong in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readShort

        public short readShort()
                        throws javax.jms.JMSException
        Read
        Specified by:
        readShort in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readUnsignedByte

        public int readUnsignedByte()
                             throws javax.jms.JMSException
        Read
        Specified by:
        readUnsignedByte in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readUnsignedShort

        public int readUnsignedShort()
                              throws javax.jms.JMSException
        Read
        Specified by:
        readUnsignedShort in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readUTF

        public String readUTF()
                       throws javax.jms.JMSException
        Read
        Specified by:
        readUTF in interface javax.jms.BytesMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • reset

        public void reset()
                   throws javax.jms.JMSException
        Reset
        Specified by:
        reset in interface javax.jms.BytesMessage
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeBoolean

        public void writeBoolean​(boolean value)
                          throws javax.jms.JMSException
        Write
        Specified by:
        writeBoolean in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeByte

        public void writeByte​(byte value)
                       throws javax.jms.JMSException
        Write
        Specified by:
        writeByte in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeBytes

        public void writeBytes​(byte[] value,
                               int offset,
                               int length)
                        throws javax.jms.JMSException
        Write
        Specified by:
        writeBytes in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        offset - The offset
        length - The length
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeBytes

        public void writeBytes​(byte[] value)
                        throws javax.jms.JMSException
        Write
        Specified by:
        writeBytes in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeChar

        public void writeChar​(char value)
                       throws javax.jms.JMSException
        Write
        Specified by:
        writeChar in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeDouble

        public void writeDouble​(double value)
                         throws javax.jms.JMSException
        Write
        Specified by:
        writeDouble in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeFloat

        public void writeFloat​(float value)
                        throws javax.jms.JMSException
        Write
        Specified by:
        writeFloat in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeInt

        public void writeInt​(int value)
                      throws javax.jms.JMSException
        Write
        Specified by:
        writeInt in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeLong

        public void writeLong​(long value)
                       throws javax.jms.JMSException
        Write
        Specified by:
        writeLong in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeObject

        public void writeObject​(Object value)
                         throws javax.jms.JMSException
        Write
        Specified by:
        writeObject in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeShort

        public void writeShort​(short value)
                        throws javax.jms.JMSException
        Write
        Specified by:
        writeShort in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeUTF

        public void writeUTF​(String value)
                      throws javax.jms.JMSException
        Write
        Specified by:
        writeUTF in interface javax.jms.BytesMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs