Class ImageXMLDOM
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.AbstractImage
org.apache.xmlgraphics.image.loader.impl.ImageXMLDOM
- All Implemented Interfaces:
Image
This class is an implementation of the Image interface exposing an XML DOM (W3C).
-
Constructor Summary
ConstructorsConstructorDescriptionImageXMLDOM(ImageInfo info, Document doc, String rootNamespace) Main constructor.ImageXMLDOM(ImageInfo info, Document doc, XMLNamespaceEnabledImageFlavor flavor) Main constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the contained W3C DOM document.Returns the flavor of the image.Returns the root XML namespace of the XML document.booleanIndicates whether the Image instance is cacheable in memory.Methods inherited from class AbstractImage
getColorSpace, getICCProfile, getInfo, getSize, toString
-
Constructor Details
-
ImageXMLDOM
-
ImageXMLDOM
Main constructor.- Parameters:
info- the image info objectdoc- the W3C DOM documentflavor- the image flavor
-
-
Method Details
-
getFlavor
-
isCacheable
public boolean isCacheable()Indicates whether the Image instance is cacheable in memory.- Returns:
- true if the Image is cacheable
-
getDocument
-
getRootNamespace
Returns the root XML namespace of the XML document.- Returns:
- the root namespace
-