@ Pure public static String toJavaString ( String text ) { final StringEscaper escaper = new StringEscaper ( ) ; return escaper . escape ( text ) ; }
Translate the given string to its Java string equivalent . All the special characters will be escaped . The enclosing double quote characters are not added .