public synchronized void write (byte[] buffer, int offset, int add)
public synchronized void write (int oneByte)
  public synchronized void write (byte[] buffer, int offset, int add)  {    // If ADD < 0 then arraycopy will throw the appropriate error for    // us.    if (add >= 0)      resize (add);    System.arraycopy(buffer, offset, buf, count, add);    count += add;  }