public void writeInt(int v) throws IOException {
  dataOutput.writeInt(v);
  offset+=4;
}

public void writeInt ( int v ) throws IOException { dataOutput . writeInt ( v ) ; offset += 4 ; }
writes a single int .
