logger.debug("writing int= " + i);
  public void writeInt(int i) throws IOException  {    logger.debug("writing int= " + i);    byte[] b = new byte[4];    b[0] = (byte)  i;    b[1] = (byte) (i >>>  8);    b[2] = (byte) (i >>> 16);    b[3] = (byte) (i >>> 24);    write(b);  }