@Override
  public void flush() throws IOException {
    try {
      myOutputStream.flush();
    }
    catch (IOException e) {
      myFailed = true;
      throw e;
    }
  }
@Override
  public void flush()