Reads compressed data into a byte array.
This method will block until some input can be read and compressed.
Returns:
the actual number of bytes read, or -1 if the end of the
uncompressed input stream is reached
Parameters:
-
b - buffer into which the data is read
-
off - starting offset of the data within {@code b}
-
len - maximum number of compressed bytes to read into {@code b}
Throws:
-
IndexOutOfBoundsException - if {@code len} > {@code b.length -
off}
-
IOException - if an I/O error occurs or if this input stream is
already closed