protected final boolean readBlock ( final long block , final byte [ ] buffer ) throws IOException { final int bytesRead = readData ( block * this . blockSize , buffer , 0 , this . blockSize ) ; if ( bytesRead <= 0 ) { return false ; } if ( this . blockSize != bytesRead ) { throw new IOException ( "Could not deserialize a complete block" ) ; } return true ; }
Read the data for the specified block into the specified buffer .