public static void writeInt(DataOutput out,int v) throws IOException {
  out.writeByte(0xff & v);
  out.writeByte(0xff & (v >>> 8));
  out.writeByte(0xff & (v >>> 16));
  out.writeByte(0xff & (v >>> 24));
}

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