/** * Foreground thread blocking operation that retrieves the next read-ahead buffer. * Lazy initiation of read-ahead is performed if required. * @return next decompressed block in input stream */ private DecompressedBlock nextBlockSync() { ensureReadAhead(); DecompressedBlock nextBlock; try { nextBlock = mResult.take(); } catch (InterruptedException e) { return new DecompressedBlock(0, 0, e); } ensureReadAhead(); return nextBlock; } private class AsyncBlockCompressedInputStreamRunnable implements Runnable {
/** * Foreground thread blocking operation that retrieves the next read-ahead buffer. * Lazy initiation of read-ahead is performed if required. * @return next decompressed block in input stream */ private DecompressedBlock nextBlockSync() { ensureReadAhead(); DecompressedBlock nextBlock; try { nextBlock = mResult.take(); } catch (InterruptedException e) { return new DecompressedBlock(0, 0, e); } ensureReadAhead(); return nextBlock; } private class AsyncBlockCompressedInputStreamRunnable implements Runnable {
ensureReadAhead(); return; } else {
ensureReadAhead(); return; } else {