setInput

void setInput(byte[] b,
int off,
int len)

Sets input data for decompression.
This should be called if and only if needsInput() returns
true indicating that more input data is required.
(Both native and non-native versions of various Decompressors require
that the data passed in via b[] remain unmodified until
the caller is explicitly notified--via needsInput()--that the
buffer may be safely modified. With this requirement, an extra
buffer-copy can be avoided.)

decompress

Fills specified buffer with uncompressed data. Returns actual number
of bytes of uncompressed data. A return value of 0 indicates that
needsInput() should be called in order to determine if more
input data is required.