public InputStream getInputStream() throws ResourceIOException {
        return new ByteArrayInputStream(get());
    }
Returns resource content as an {@link InputStream}.

@throws ResourceIOException
httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/Resource.java