Class ActiveMQRAStreamMessage

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

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

      • ActiveMQRAStreamMessage

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

      • readBoolean

        public boolean readBoolean()
                            throws javax.jms.JMSException
        Read
        Specified by:
        readBoolean in interface javax.jms.StreamMessage
        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.StreamMessage
        Returns:
        The value
        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.StreamMessage
        Parameters:
        value - The value
        Returns:
        The value
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readObject

        public java.lang.Object readObject()
                                    throws javax.jms.JMSException
        Read
        Specified by:
        readObject in interface javax.jms.StreamMessage
        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.StreamMessage
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • readString

        public java.lang.String readString()
                                    throws javax.jms.JMSException
        Read
        Specified by:
        readString in interface javax.jms.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        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.StreamMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeObject

        public void writeObject​(java.lang.Object value)
                         throws javax.jms.JMSException
        Write
        Specified by:
        writeObject in interface javax.jms.StreamMessage
        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.StreamMessage
        Parameters:
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • writeString

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