code: public long readLE(final int n) throws OtpErlangDecodeException {
          final byte[] b = new byte[n];
          try {
              super.read(b);
          } catch (final IOException e) {
              throw new OtpErlangDecodeException("Cannot read from input stream");
          }
          long v = 0;
          int i = n;
          while (i-- > 0) {
              v = v << 8 | (long) b[i] & 0xff;
          }
          return v;
      }
docs: Read a little endian integer from the stream.
  
  @param n
  the number of bytes to read
  
  @return the bytes read, converted from little endian to an integer.
  
  @exception OtpErlangDecodeException
  if the next byte cannot be read.