private static void writeLong(long value,OutputStream out) throws IOException {
  out.write((int)(value >>> 56) & 0xFF);
  out.write((int)(value >>> 48) & 0xFF);
  out.write((int)(value >>> 40) & 0xFF);
  out.write((int)(value >>> 32) & 0xFF);
  out.write((int)(value >>> 24) & 0xFF);
  out.write((int)(value >>> 16) & 0xFF);
  out.write((int)(value >>> 8) & 0xFF);
  out.write((int)(value >>> 0) & 0xFF);
}

private static void writeLong ( long value , OutputStream out ) throws IOException { out . write ( ( int ) ( value > > > 56 ) & 0xFF ) ; out . write ( ( int ) ( value > > > 48 ) & 0xFF ) ; out . write ( ( int ) ( value > > > 40 ) & 0xFF ) ; out . write ( ( int ) ( value > > > 32 ) & 0xFF ) ; out . write ( ( int ) ( value > > > 24 ) & 0xFF ) ; out . write ( ( int ) ( value > > > 16 ) & 0xFF ) ; out . write ( ( int ) ( value > > > 8 ) & 0xFF ) ; out . write ( ( int ) ( value > > > 0 ) & 0xFF ) ; }
write a long value to an outputstream in big - endian byte order .
