public synchronized void write (byte[] buf) throws IOException
public synchronized void write (int bval) throws IOException
  public synchronized void write (byte[] buf) throws IOException  {    write (buf, 0, buf.length);  }