Class LongStringHelper


  • public class LongStringHelper
    extends java.lang.Object
    Utility for working with LongStrings.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LongString asLongString​(byte[] bytes)
      Converts a binary block to a LongString.
      static LongString asLongString​(java.lang.String string)
      Converts a String to a LongString using UTF-8 encoding.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LongStringHelper

        public LongStringHelper()
    • Method Detail

      • asLongString

        public static LongString asLongString​(java.lang.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