Class StringUtil

java.lang.Object
com.google.gerrit.server.ioutil.StringUtil

public class StringUtil extends Object
  • Constructor Details

    • StringUtil

      public StringUtil()
  • Method Details

    • 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 (\\).