Class StringUtils


  • public class StringUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StringUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toQuotedString​(Binary bin, int stringLength, boolean appendIfTruncated)
      Converts the Binary to a quoted string.
      • Methods inherited from class java.lang.Object

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

      • StringUtils

        public StringUtils()
    • Method Detail

      • toQuotedString

        public static java.lang.String toQuotedString​(Binary bin,
                                                      int stringLength,
                                                      boolean appendIfTruncated)
        Converts the Binary to a quoted string.
        Parameters:
        bin - the Binary to convert
        stringLength - the maximum length of stringified content (excluding the quotes, and truncated indicator)
        appendIfTruncated - appends "...(truncated)" if not all of the payload is present in the string
        Returns:
        the converted string