public void print(String value,boolean checkForEscape) throws IOException {
  if (!checkForEscape) {
    printSep();
    out.write(value);
    return;
  }
  if (buf.length < value.length()) {
    buf=new char[value.length()];
  }
  value.getChars(0,value.length(),buf,0);
  print(buf,0,value.length(),checkForEscape);
}

public void print ( String value , boolean checkForEscape ) throws IOException { if ( ! checkForEscape ) { printSep ( ) ; out . write ( value ) ; return ; } if ( buf . length < value . length ( ) ) { buf = new char [ value . length ( ) ] ; } value . getChars ( 0 , value . length ( ) , buf , 0 ) ; print ( buf , 0 , value . length ( ) , checkForEscape ) ; }
print the string as the next value on the line . the value will be escaped or encapsulated as needed if checkforescape = = true
