public InputStream getStream() {
        return stream;
    }
Gets entity content as an {@link InputStream} if set using
{@link #setStream(java.io.InputStream)} method.

@return entity content as an {@link InputStream}
httpclient5/src/main/java/org/apache/hc/client5/http/entity/EntityBuilder.java