question: public static final String toString ( String str ) { if ( str == null ) return "null" ; ByteArrayOutputStream buffer = new ByteArrayOutputStream ( ) ; toByteArray ( buffer , str ) ; return buffer . toString ( ) ; }
target:  Provides a Java string literal representing the parameter string. This includes surrounding double quotes, and quoted special characters, including UTF escape sequences when necessary. <p> This function works only for ASCII character encoding, and assumes this is the default encoding.