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 Details

    • EmbeddedImageContentProvider

      public EmbeddedImageContentProvider(URL systemID, String imageSerializedContent, 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 Details

    • getImageSerializedContent

      public String getImageSerializedContent()
      Get the image serialized content. Not null 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 String getDoctype()
      Returns:
      Returns the doctype.
    • getInputStream

      public InputStream getInputStream()
      Return an UTF8-encoded representation of the image serialized content.
      Overrides:
      getInputStream in class ImageContentProvider
      Returns:
      Returns an input stream which can be used to read the image contents. This is never null.
      See Also: