public InputStream getInputStreamOrThrow() {
    return Preconditions.checkNotNull(getInputStream());
  }
Returns an InputStream from the internal InputStream Supplier if it's not null. Otherwise
returns an InputStream for the internal buffer reference if valid and null otherwise.

<p>The caller has to close the InputStream after using it.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/EncodedImage.java