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