Class LongStringHelper


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

      • LongStringHelper

        public LongStringHelper()
    • Method Detail

      • 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