private ByteBuffer getChunk ( final int chunkIdx ) throws IOException , InterruptedException { ByteBuffer chunk = chunkCache [ chunkIdx ] ; if ( chunk == null ) { final ByteBuffer byteBufferDup = zipFileSlice . physicalZipFile . getByteBuffer ( chunkIdx ) . duplicate ( ) ; chunk = chunkCache [ chunkIdx ] = byteBufferDup ; } return chunk ; }
Get the 2GB chunk of the zipfile with the given chunk index .