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.boolean
Indicates whether the Image instance is cacheable in memory.Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImage
getColorSpace, getICCProfile, getInfo, getSize, toString
-
Constructor Details
-
ImageXMLDOM
Main constructor.- Parameters:
info
- the image info objectdoc
- the W3C DOM documentrootNamespace
- the root XML namespace of the XML document in the DOM
-
ImageXMLDOM
Main constructor.- Parameters:
info
- the image info objectdoc
- the W3C DOM documentflavor
- the image flavor
-
-
Method Details
-
getFlavor
Returns the flavor of the image.- Returns:
- the image flavor
-
isCacheable
public boolean isCacheable()Indicates whether the Image instance is cacheable in memory.- Returns:
- true if the Image is cacheable
-
getDocument
Returns the contained W3C DOM document.- Returns:
- the DOM
-
getRootNamespace
Returns the root XML namespace of the XML document.- Returns:
- the root namespace
-