bundles/org.tukani.xz/src/org/tukaani/xz/SingleXZInputStream.java
public int available() throws IOException {
        if (in == null)
            throw new XZIOException("Stream closed");

        if (exception != null)
            throw exception;

        return blockDecoder == null ? 0 : blockDecoder.available();
    }
public int available() throws IOException {
        if (in == null)
            throw new XZIOException("Stream closed");

        if (exception != null)
            throw exception;

        return blockDecoder == null ? 0 : blockDecoder.available();
    }
Returns the number of uncompressed bytes that can be read
without blocking. The value is returned with an assumption
that the compressed input data will be valid. If the compressed
data is corrupt, <code>CorruptedInputException</code> may get
thrown before the number of bytes claimed to be available have
been read from this input stream.

@return      the number of uncompressed bytes that can be read
without blocking