public boolean checkError(){
  OutputStream delegate=out;
  if (delegate == null) {
    return ioError;
  }
  flush();
  return ioError;
}

public boolean checkError ( ) { OutputStream delegate = out ; if ( delegate == null ) { return ioError ; } flush ( ) ; return ioError ; }
flushes this stream and returns the value of the error flag .
