Class XMLNamespaceEnabledImageFlavor
java.lang.Object
org.apache.xmlgraphics.image.loader.ImageFlavor
org.apache.xmlgraphics.image.loader.RefinedImageFlavor
org.apache.xmlgraphics.image.loader.XMLNamespaceEnabledImageFlavor
Special image flavor subclass which enables the restriction to a particular XML namespace.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImageFlavorAn XML-based SVG image in form of a W3C DOM instanceFields inherited from class ImageFlavor
BUFFERED_IMAGE, GRAPHICS2D, RAW, RAW_CCITTFAX, RAW_EMF, RAW_EPS, RAW_JPEG, RAW_LZW, RAW_PDF, RAW_PNG, RAW_TIFF, RENDERED_IMAGE, XML_DOM -
Constructor Summary
ConstructorsConstructorDescriptionXMLNamespaceEnabledImageFlavor(ImageFlavor parentFlavor, String namespace) Constructs a new image flavor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the XML namespace URI that the image flavor represents if such a namespace URI is available.inthashCode()Methods inherited from class RefinedImageFlavor
getMimeType, getParentFlavor, isCompatibleMethods inherited from class ImageFlavor
getName, toString
-
Field Details
-
SVG_DOM
An XML-based SVG image in form of a W3C DOM instance
-
-
Constructor Details
-
XMLNamespaceEnabledImageFlavor
Constructs a new image flavor.- Parameters:
parentFlavor- the parent image flavornamespace- an XML namespace URI refining the parent image flavor
-
-
Method Details
-
getNamespace
Returns the XML namespace URI that the image flavor represents if such a namespace URI is available. This is only applicable to images in XML form. Other image types will return null.- Overrides:
getNamespacein classRefinedImageFlavor- Returns:
- the XML or null if no MIME type can be provided (like for in-memory images)
-
equals
Description copied from class:ImageFlavor- Overrides:
equalsin classImageFlavor
-
hashCode
public int hashCode()Description copied from class:ImageFlavor- Overrides:
hashCodein classImageFlavor
-