@Override public final void writeLong(long v) throws IOException {
  work[0]=(byte)v;
  work[1]=(byte)(v >> 8);
  work[2]=(byte)(v >> 16);
  work[3]=(byte)(v >> 24);
  work[4]=(byte)(v >> 32);
  work[5]=(byte)(v >> 40);
  work[6]=(byte)(v >> 48);
  work[7]=(byte)(v >> 56);
  dis.write(work,0,8);
}

@ Override public final void writeLong ( long v ) throws IOException { work [ 0 ] = ( byte ) v ; work [ 1 ] = ( byte ) ( v > > 8 ) ; work [ 2 ] = ( byte ) ( v > > 16 ) ; work [ 3 ] = ( byte ) ( v > > 24 ) ; work [ 4 ] = ( byte ) ( v > > 32 ) ; work [ 5 ] = ( byte ) ( v > > 40 ) ; work [ 6 ] = ( byte ) ( v > > 48 ) ; work [ 7 ] = ( byte ) ( v > > 56 ) ; dis . write ( work , 0 , 8 ) ; }
write a long , 64 - bits . like dataoutputstream . writelong .
