public void println(){
  if (addNewlines) {
    try {
      out.write("\n");
    }
 catch (    IOException ioe) {
      throw new GroovyRuntimeException(ioe);
    }
  }
}

public void println ( ) { if ( addNewlines ) { try { out . write ( "\n" ) ; } catch ( IOException ioe ) { throw new GroovyRuntimeException ( ioe ) ; } } }
prints an end - of - line character ( if enabled via addnewlines property ) . defaults to outputting a single ' \ n ' character but by using a custom writer , e . g . platformlinewriter , you can get platform - specific end - of - line characters .
