public static void writeShort(DataOutput out,short v) throws IOException {
  out.writeByte((0xff & v));
  out.writeByte((0xff & (v >>> 8)));
}

public static void writeShort ( DataOutput out , short v ) throws IOException { out . writeByte ( ( 0xff & v ) ) ; out . writeByte ( ( 0xff & ( v > > > 8 ) ) ) ; }
writes a little - endian short .
