public abstract long readLong () throws IOException

Reads eight input bytes and returns a long value. Let a-h be the first through eighth bytes read. The value returned is:


 (((long)(a & 0xff) << 56) |
  ((long)(b & 0xff) << 48) |
  ((long)(c & 0xff) << 40) |
  ((long)(d & 0xff) << 32) |
  ((long)(e & 0xff) << 24) |
  ((long)(f & 0xff) << 16) |
  ((long)(g & 0xff) <<  8) |
  ((long)(h & 0xff)))
 

This method is suitable for reading bytes written by the writeLong method of interface DataOutput.

Returns:  the long value read.

Exceptions:
EOFException    if this stream reaches the end before reading all the bytes.
IOException    if an I/O error occurs.