@Override
        public void close() throws IOException {
            if (closed) {
                return;
            }
            closed = true;
            inf.end();
            super.close();
        }
Deflates an input stream. This class includes logic needed for various RFCs in order
to reasonably implement the "deflate" compression algorithm.
httpclient5/src/main/java/org/apache/hc/client5/http/entity/DeflateInputStream.java