Interface EscapeUtil


public interface EscapeUtil
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static String
    Replaces unprintable characters by their escaped (or unicode escaped) equivalents in the given string Used to convert raw characters to their escaped version when these raw version cannot be used as part of an ASCII string literal.
  • Method Details

    • addEscapes

      static String addEscapes(String str)
      Replaces unprintable characters by their escaped (or unicode escaped) equivalents in the given string Used to convert raw characters to their escaped version when these raw version cannot be used as part of an ASCII string literal.
      Parameters:
      str - input
      Returns:
      escaped string