Class StringUtil


  • public class StringUtil
    extends Object
    • Constructor Detail

      • StringUtil

        public StringUtil()
    • Method Detail

      • escapeString

        public static String escapeString​(String str)
        Escapes the input string so that all non-printable characters (0x00-0x1f) are represented as a hex escape (\x00, \x01, ...) or as a C-style escape sequence (\a, \b, \t, \n, \v, \f, or \r). Backslashes in the input string are doubled (\\).