Class 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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. 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 java.lang.String getDoctype()
        Returns:
        Returns the doctype.