class LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput {

  @Override
  public void writeLong(long v) throws IOException {
    out.write((int) (0xFF & v));
    out.write((int) (0xFF & (v >> 8)));
    out.write((int) (0xFF & (v >> 16)));
    out.write((int) (0xFF & (v >> 24)));
    out.write((int) (0xFF & (v >> 32)));
    out.write((int) (0xFF & (v >> 40)));
    out.write((int) (0xFF & (v >> 48)));
    out.write((int) (0xFF & (v >> 56)));
  }

  public  LittleEndianDataOutputStream(OutputStream out);

}