Class ImageContentProvider

java.lang.Object
ro.sync.exml.workspace.api.images.handlers.providers.ImageContentProvider
Direct Known Subclasses:
EmbeddedImageContentProvider

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

    • ImageContentProvider

      public ImageContentProvider(URL url, InputStream inputStream)
      Constructor.
      Parameters:
      url - The image URL.
      inputStream - The input stream.
  • Method Details

    • getUrl

      public 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 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.