Class LongStringHelper

java.lang.Object
com.rabbitmq.client.impl.LongStringHelper

public class LongStringHelper extends Object
Utility for working with LongStrings.
  • Constructor Details

    • LongStringHelper

      public LongStringHelper()
  • Method Details

    • asLongString

      public static LongString asLongString(String string)
      Converts a String to a LongString using UTF-8 encoding.
      Parameters:
      string - the string to wrap
      Returns:
      a LongString wrapping it
    • asLongString

      public static LongString asLongString(byte[] bytes)
      Converts a binary block to a LongString.
      Parameters:
      bytes - the data to wrap
      Returns:
      a LongString wrapping it