cdm/src/main/java/ucar/unidata/io/BeLeDataInputStream.java
public long readLELong() throws IOException {
    readFully(w, 0, 8);
    return
            (long) (w[7] & 0xff) << 56 |
                    (long) (w[6] & 0xff) << 48 |
                    (long) (w[5] & 0xff) << 40 |
                    (long) (w[4] & 0xff) << 32 |
                    (long) (w[3] & 0xff) << 24 |
                    (long) (w[2] & 0xff) << 16 |
                    (long) (w[1] & 0xff) << 8 |
                    (long) (w[0] & 0xff);
  }
public long readLELong() throws IOException {
    readFully(w, 0, 8);
    return
            (long) (w[7] & 0xff) << 56 |
                    (long) (w[6] & 0xff) << 48 |
                    (long) (w[5] & 0xff) << 40 |
                    (long) (w[4] & 0xff) << 32 |
                    (long) (w[3] & 0xff) << 24 |
                    (long) (w[2] & 0xff) << 16 |
                    (long) (w[1] & 0xff) << 8 |
                    (long) (w[0] & 0xff);
  }
read a long in little endian format

@return long from next 8 bytes in stream, littleEndian order