long getLong ( final long off ) throws IOException , InterruptedException { if ( off < 0 || off > zipFileSlice . len - 8 ) { throw new IndexOutOfBoundsException ( ) ; } if ( read ( off , scratch , 0 , 8 ) < 8 ) { throw new EOFException ( "Unexpected EOF" ) ; } return ( ( scratch [ 7 ] & 0xff L ) << 56 ) // | ( ( scratch [ 6 ] & 0xff L ) << 48 ) // | ( ( scratch [ 5 ] & 0xff L ) << 40 ) // | ( ( scratch [ 4 ] & 0xff L ) << 32 ) // | ( ( scratch [ 3 ] & 0xff L ) << 24 ) // | ( ( scratch [ 2 ] & 0xff L ) << 16 ) // | ( ( scratch [ 1 ] & 0xff L ) << 8 ) // | ( scratch [ 0 ] & 0xff L ) ; }
Get a long from the zipfile slice .