public void write(Color c,String s) throws IOException {
  if (page != null) {
    page.setColor(c);
  }
  write(s);
  if (page != null) {
    page.setColor(color);
  }
}

public void write ( Color c , String s ) throws IOException { if ( page != null ) { page . setColor ( c ) ; } write ( s ) ; if ( page != null ) { page . setColor ( color ) ; } }
write the string with the desired color . returns the text color back to the default after the string is written .
