Class ImageContentProvider

  • Direct Known Subclasses:
    EmbeddedImageContentProvider

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class ImageContentProvider
    extends java.lang.Object
    Provides access to the image contents...
    Since:
    18
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageContentProvider​(java.net.URL url, java.io.InputStream inputStream)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getInputStream()
      Get an input stream which can be used to read the image contents.
      java.net.URL getUrl()
      Get an URL pointing to the place where the image is located.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageContentProvider

        public ImageContentProvider​(java.net.URL url,
                                    java.io.InputStream inputStream)
        Constructor.
        Parameters:
        url - The image URL.
        inputStream - The input stream.
    • Method Detail

      • getUrl

        public java.net.URL getUrl()
        Get an URL pointing to the place where the image is located. If the image is embedded, this returns null.
        Returns:
        Returns an URL pointing to the place where the image is located. If the image is embedded, this returns null.
      • getInputStream

        public java.io.InputStream getInputStream()
        Get an input stream which can be used to read the image contents.
        Returns:
        Returns an input stream which can be used to read the image contents. This is never null.