public final class ImageIOUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
IMAGEIO_METADATA
Key for ImageInfo's custom objects to embed the ImageIO metadata
|
| Modifier | Constructor and Description |
|---|---|
private |
ImageIOUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpMetadataToSystemOut(javax.imageio.metadata.IIOMetadata iiometa)
Dumps the content of an IIOMetadata instance to System.out.
|
private static void |
dumpNodeToSystemOut(org.w3c.dom.Node node)
Serializes a W3C DOM node to a String and dumps it to System.out.
|
static void |
extractResolution(javax.imageio.metadata.IIOMetadata iiometa,
ImageSize size)
Extracts the resolution information from the standard ImageIO metadata.
|
static org.w3c.dom.Element |
getChild(org.w3c.dom.Element el,
java.lang.String name)
Returns a child element of another element or null if there's no such child.
|
public static final java.lang.Object IMAGEIO_METADATA
public static void extractResolution(javax.imageio.metadata.IIOMetadata iiometa,
ImageSize size)
iiometa - the metadata provided by ImageIOsize - the image size objectpublic static org.w3c.dom.Element getChild(org.w3c.dom.Element el,
java.lang.String name)
el - the parent elementname - the name of the requested childpublic static void dumpMetadataToSystemOut(javax.imageio.metadata.IIOMetadata iiometa)
iiometa - the metadataprivate static void dumpNodeToSystemOut(org.w3c.dom.Node node)
node - a W3C DOM node