Class StreamBody

java.lang.Object
com.swiftmq.impl.streams.comp.message.StreamBody

public class StreamBody extends Object
Facade to wrap the body of a javax.jms.StreamMessage
Author:
IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
  • Method Details

    • readBoolean

      public boolean readBoolean() throws JMSException
      Reads a boolean.
      Returns:
      boolean
      Throws:
      JMSException
    • readByte

      public byte readByte() throws JMSException
      Reads a byte.
      Returns:
      byte
      Throws:
      JMSException
    • readChar

      public char readChar() throws JMSException
      Reads a char.
      Returns:
      char
      Throws:
      JMSException
    • readBytes

      public void readBytes(byte[] bytes) throws JMSException
      Reads into an array of bytes.
      Parameters:
      bytes - array of bytes
      Throws:
      JMSException
    • readShort

      public short readShort() throws JMSException
      Reads a short.
      Returns:
      short
      Throws:
      JMSException
    • readInt

      public int readInt() throws JMSException
      Reads an int.
      Returns:
      int
      Throws:
      JMSException
    • readLong

      public long readLong() throws JMSException
      Reads a long.
      Returns:
      long
      Throws:
      JMSException
    • readDouble

      public double readDouble() throws JMSException
      Reads a double.
      Returns:
      double
      Throws:
      JMSException
    • readFloat

      public float readFloat() throws JMSException
      Reads a float.
      Returns:
      float.
      Throws:
      JMSException
    • readString

      public String readString() throws JMSException
      Reads a string.
      Returns:
      string
      Throws:
      JMSException
    • readObject

      public Object readObject() throws JMSException
      Reads an object.
      Returns:
      object
      Throws:
      JMSException
    • reset

      public StreamBody reset() throws JMSException
      Resets the stream body to the beginning.
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeBoolean

      public StreamBody writeBoolean(boolean b) throws JMSException
      Write a boolean.
      Parameters:
      b - boolean
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeChar

      public StreamBody writeChar(char b) throws JMSException
      Write a char.
      Parameters:
      b - char
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeByte

      public StreamBody writeByte(byte b) throws JMSException
      Write a byte.
      Parameters:
      b - byte
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeBytes

      public StreamBody writeBytes(byte[] b) throws JMSException
      Write a byte array.
      Parameters:
      b - byte array
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeBytes

      public StreamBody writeBytes(byte[] b, int off, int len) throws JMSException
      Write a byte array with offset and length.
      Parameters:
      b - byte array
      off - offset
      len - length
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeShort

      public StreamBody writeShort(short b) throws JMSException
      Write a short.
      Parameters:
      b - short
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeInt

      public StreamBody writeInt(int b) throws JMSException
      Write a int.
      Parameters:
      b - int
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeLong

      public StreamBody writeLong(long b) throws JMSException
      Write a long.
      Parameters:
      b - long
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeDouble

      public StreamBody writeDouble(double b) throws JMSException
      Write a double.
      Parameters:
      b - double
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeFloat

      public StreamBody writeFloat(float b) throws JMSException
      Write a float.
      Parameters:
      b - float
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeString

      public StreamBody writeString(String b) throws JMSException
      Write a String.
      Parameters:
      b - String
      Returns:
      StreamBody
      Throws:
      JMSException
    • writeObject

      public StreamBody writeObject(Object b) throws JMSException
      Write a Object.
      Parameters:
      b - Object
      Returns:
      StreamBody
      Throws:
      JMSException