public void print(Object s) throws IOException {
  boolean align=needsAlign;
  if (needsNewLine && !onNewLine) {
    println();
  }
  if (align && !aligned) {
    align();
  }
  if (needsSpace && !onNewLine && !aligned) {
    out.write(' ');
  }
  needsSpace=false;
  out.write(s.toString());
  onNewLine=false;
  aligned=false;
}

public void print ( Object s ) throws IOException { boolean align = needsAlign ; if ( needsNewLine && ! onNewLine ) { println ( ) ; } if ( align && ! aligned ) { align ( ) ; } if ( needsSpace && ! onNewLine && ! aligned ) { out . write ( ' ' ) ; } needsSpace = false ; out . write ( s . toString ( ) ) ; onNewLine = false ; aligned = false ; }
print string , replacing all non - ascii character with unicode escapes .
