Class StreamMessageUtil

java.lang.Object
org.apache.activemq.artemis.reader.MessageUtil
org.apache.activemq.artemis.reader.StreamMessageUtil

public class StreamMessageUtil extends MessageUtil
  • Constructor Details

    • StreamMessageUtil

      public StreamMessageUtil()
  • Method Details

    • streamReadBoolean

      public static boolean streamReadBoolean(ActiveMQBuffer buff)
      Method to read boolean values out of the Stream protocol existent on JMS Stream Messages Throws IllegalStateException if the type was invalid
    • streamReadByte

      public static byte streamReadByte(ActiveMQBuffer buff)
    • streamReadShort

      public static short streamReadShort(ActiveMQBuffer buff)
    • streamReadChar

      public static char streamReadChar(ActiveMQBuffer buff)
    • streamReadInteger

      public static int streamReadInteger(ActiveMQBuffer buff)
    • streamReadLong

      public static long streamReadLong(ActiveMQBuffer buff)
    • streamReadFloat

      public static float streamReadFloat(ActiveMQBuffer buff)
    • streamReadDouble

      public static double streamReadDouble(ActiveMQBuffer buff)
    • streamReadString

      public static String streamReadString(ActiveMQBuffer buff)
    • streamReadBytes

      public static Pair<Integer,Integer> streamReadBytes(ActiveMQBuffer buff, int remainingBytes, byte[] value)
      Utility for reading bytes out of streaming. It will return remainingBytes, bytesRead
      Parameters:
      remainingBytes - remaining Bytes from previous read. Send it to 0 if it was the first call for the message
      Returns:
      a pair of remaining bytes and bytes read
    • streamReadObject

      public static Object streamReadObject(ActiveMQBuffer buff)