public static final void toString(StringBuffer output,String str){
  if (str == null) {
    output.append("null");
    return;
  }
  output.append(toString(str));
}

public static final void toString ( StringBuffer output , String str ) { if ( str == null ) { output . append ( "null" ) ; return ; } output . append ( toString ( str ) ) ; }
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 .
