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