public static void writeLong(OutputStream os,long v) throws IOException {
  os.write((int)(0xff & v));
  os.write((int)(0xff & (v >>> 8)));
  os.write((int)(0xff & (v >>> 16)));
  os.write((int)(0xff & (v >>> 24)));
  os.write((int)(0xff & (v >>> 32)));
  os.write((int)(0xff & (v >>> 40)));
  os.write((int)(0xff & (v >>> 48)));
  os.write((int)(0xff & (v >>> 56)));
}

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