public void writeLELong(long l) throws IOException {
  out.write((int)l & 0xFF);
  out.write((int)(l >>> 8) & 0xFF);
  out.write((int)(l >>> 16) & 0xFF);
  out.write((int)(l >>> 24) & 0xFF);
  out.write((int)(l >>> 32) & 0xFF);
  out.write((int)(l >>> 40) & 0xFF);
  out.write((int)(l >>> 48) & 0xFF);
  out.write((int)(l >>> 56) & 0xFF);
  written+=8;
}

public void writeLELong ( long l ) throws IOException { out . write ( ( int ) l & 0xFF ) ; out . write ( ( int ) ( l > > > 8 ) & 0xFF ) ; out . write ( ( int ) ( l > > > 16 ) & 0xFF ) ; out . write ( ( int ) ( l > > > 24 ) & 0xFF ) ; out . write ( ( int ) ( l > > > 32 ) & 0xFF ) ; out . write ( ( int ) ( l > > > 40 ) & 0xFF ) ; out . write ( ( int ) ( l > > > 48 ) & 0xFF ) ; out . write ( ( int ) ( l > > > 56 ) & 0xFF ) ; written += 8 ; }
writes a number of type long in little endian
