Class EmbeddedImageContentProvider
- java.lang.Object
-
- ro.sync.exml.workspace.api.images.handlers.providers.ImageContentProvider
-
- ro.sync.exml.workspace.api.images.handlers.providers.EmbeddedImageContentProvider
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class EmbeddedImageContentProvider extends ImageContentProvider
Provides access to the XML image contents...- Since:
- 18
-
-
Constructor Summary
Constructors Constructor Description EmbeddedImageContentProvider(java.net.URL systemID, java.lang.String imageSerializedContent, java.lang.String doctypeContent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDoctype()
java.lang.String
getImageSerializedContent()
Get the image serialized content.java.io.InputStream
getInputStream()
Return an UTF8-encoded representation of the image serialized content.-
Methods inherited from class ro.sync.exml.workspace.api.images.handlers.providers.ImageContentProvider
getUrl
-
-
-
-
Constructor Detail
-
EmbeddedImageContentProvider
public EmbeddedImageContentProvider(java.net.URL systemID, java.lang.String imageSerializedContent, java.lang.String doctypeContent)
Constructor.- Parameters:
systemID
- The system ID of the document which contains the XML image.imageSerializedContent
- The image serialized content.doctypeContent
- The doctype content.
-
-
Method Detail
-
getImageSerializedContent
public java.lang.String getImageSerializedContent()
Get the image serialized content. Notnull
when the image is embedded in the document (SVG, MathML, etc).- Returns:
- Returns the image serialized content. Not
null
when the image is embedded in the document (SVG, MathML, etc).
-
getDoctype
public java.lang.String getDoctype()
- Returns:
- Returns the doctype.
-
getInputStream
public java.io.InputStream getInputStream()
Return an UTF8-encoded representation of the image serialized content.- Overrides:
getInputStream
in classImageContentProvider
- Returns:
- Returns an input stream which can be used to read the image contents. This is never
null
. - See Also:
ImageContentProvider.getInputStream()
-
-