bundles/org.tukani.xz/src/org/tukaani/xz/SeekableXZInputStream.java
private void initBlockDecoder() throws IOException {
        try {
            // Set it to null first so that GC can collect it if memory
            // runs tight when initializing a new BlockInputStream.
            if (blockDecoder != null) {
                blockDecoder.close();
                blockDecoder = null;
            }

            blockDecoder = new BlockInputStream(
                    in, check, verifyCheck, memoryLimit,
                    curBlockInfo.unpaddedSize, curBlockInfo.uncompressedSize,
                    arrayCache);
        } catch (MemoryLimitException e) {
            // BlockInputStream doesn't know how much memory we had
            // already needed so we need to recreate the exception.
            assert memoryLimit >= 0;
            throw new MemoryLimitException(
                    e.getMemoryNeeded() + indexMemoryUsage,
                    memoryLimit + indexMemoryUsage);
        } catch (IndexIndicatorException e) {
            // It cannot be Index so the file must be corrupt.
            throw new CorruptedInputException();
        }
    }
private void initBlockDecoder() throws IOException {
        try {
            // Set it to null first so that GC can collect it if memory
            // runs tight when initializing a new BlockInputStream.
            if (blockDecoder != null) {
                blockDecoder.close();
                blockDecoder = null;
            }

            blockDecoder = new BlockInputStream(
                    in, check, verifyCheck, memoryLimit,
                    curBlockInfo.unpaddedSize, curBlockInfo.uncompressedSize,
                    arrayCache);
        } catch (MemoryLimitException e) {
            // BlockInputStream doesn't know how much memory we had
            // already needed so we need to recreate the exception.
            assert memoryLimit >= 0;
            throw new MemoryLimitException(
                    e.getMemoryNeeded() + indexMemoryUsage,
                    memoryLimit + indexMemoryUsage);
        } catch (IndexIndicatorException e) {
            // It cannot be Index so the file must be corrupt.
            throw new CorruptedInputException();
        }
    }
private void initBlockDecoder ( ) throws IOException { try { // Set it to null first so that GC can collect it if memory // runs tight when initializing a new BlockInputStream. if ( blockDecoder != null ) { blockDecoder . close ( ) ; blockDecoder = null ; } blockDecoder = new BlockInputStream ( in , check , verifyCheck , memoryLimit , curBlockInfo . unpaddedSize , curBlockInfo . uncompressedSize , arrayCache ) ; } catch ( MemoryLimitException e ) { // BlockInputStream doesn't know how much memory we had // already needed so we need to recreate the exception. assert memoryLimit >= 0 ; throw new MemoryLimitException ( e . getMemoryNeeded ( ) + indexMemoryUsage , memoryLimit + indexMemoryUsage ) ; } catch ( IndexIndicatorException e ) { // It cannot be Index so the file must be corrupt. throw new CorruptedInputException ( ) ; } }
Initializes a new BlockInputStream. This is a helper function for
<code>seek()</code>.
Initializes a new BlockInputStream . This is a helper function for <code > seek () < / code > .