public static void writeInt(OutputStream os,int v) throws IOException {
  os.write(0xff & v);
  os.write(0xff & (v >>> 8));
  os.write(0xff & (v >>> 16));
  os.write(0xff & (v >>> 24));
}

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