public void writeShort(short v) throws IOException {
  dataOutput.writeShort(v);
  offset+=2;
}

public void writeShort ( short v ) throws IOException { dataOutput . writeShort ( v ) ; offset += 2 ; }
writes a single short .
