Class EscapeUtil


  • public abstract class EscapeUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String addEscapes​(java.lang.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.
      • Methods inherited from class java.lang.Object

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

      • addEscapes

        public static java.lang.String addEscapes​(java.lang.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