protected InputStream inflate(final byte[] input) throws MessageDecodingException {
        try {
            // compatible with GZIP and PKZIP
            return internalInflate(input, new Inflater(true));
        } catch (final IOException e) {
            try {
                // deflate compression only
                return internalInflate(input, new Inflater());
            } catch (final IOException e2) {
                LOGGER.warn("Cannot inflate message, returning it as is");
                return new ByteArrayInputStream(input);
            }
        }
    }
<p>inflate.</p>

@param input an array of {@link byte} objects
@return a {@link InputStream} object
@throws MessageDecodingException if any.
pac4j-saml/src/main/java/org/pac4j/saml/transport/Pac4jHTTPRedirectDeflateDecoder.java