code: public void write(int c) {
          try {
              synchronized (lock) {
                  ensureOpen();
                  out.write(c);
              }
          }
          catch (InterruptedIOException x) {
              Thread.currentThread().interrupt();
          }
          catch (IOException x) {
              trouble = true;
          }
      }
docs: Writes a single character.
  @param c int specifying a character to be written.