Class ImageIOUtil
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.imageio.ImageIOUtil
Helper and convenience methods for ImageIO.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Object
Key for ImageInfo's custom objects to embed the ImageIO metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
dumpMetadataToSystemOut
(IIOMetadata iiometa) Dumps the content of an IIOMetadata instance to System.out.private static void
dumpNodeToSystemOut
(Node node) Serializes a W3C DOM node to a String and dumps it to System.out.static void
extractResolution
(IIOMetadata iiometa, ImageSize size) Extracts the resolution information from the standard ImageIO metadata.static Element
Returns a child element of another element or null if there's no such child.
-
Field Details
-
IMAGEIO_METADATA
Key for ImageInfo's custom objects to embed the ImageIO metadata
-
-
Constructor Details
-
ImageIOUtil
private ImageIOUtil()
-
-
Method Details
-
extractResolution
Extracts the resolution information from the standard ImageIO metadata.- Parameters:
iiometa
- the metadata provided by ImageIOsize
- the image size object
-
getChild
Returns a child element of another element or null if there's no such child.- Parameters:
el
- the parent elementname
- the name of the requested child- Returns:
- the child or null if there's no such child
-
dumpMetadataToSystemOut
Dumps the content of an IIOMetadata instance to System.out.- Parameters:
iiometa
- the metadata
-
dumpNodeToSystemOut
Serializes a W3C DOM node to a String and dumps it to System.out.- Parameters:
node
- a W3C DOM node
-