public boolean checkError(){
  flush();
synchronized (lock) {
    return mIoError;
  }
}

public boolean checkError ( ) { flush ( ) ; synchronized ( lock ) { return mIoError ; } }
flushes this writer and returns the value of the error flag .
