@Override
    public InputStream getContent() throws IOException {
        if (super.isStreaming()) {
            if (content == null) {
                content = getDecompressingStream();
            }
            return content;
        }
        return getDecompressingStream();
    }
Constructs a new {@link DecompressingEntity}.

@param wrapped the non-null {@link HttpEntity} to be wrapped
@param inputStreamFactory factory to create decompressing stream.
httpclient5/src/main/java/org/apache/hc/client5/http/entity/DecompressingEntity.java