TMI-70: BMP image metadata + bonus listener delegation.

This commit is contained in:
Harald Kuhr
2014-10-31 12:35:55 +01:00
parent 711d2bdc32
commit 98d82fb093
7 changed files with 832 additions and 117 deletions

View File

@@ -459,6 +459,16 @@ public class XMLSerializer {
pOut.print(pNode.getTagName());
pOut.println(">");
}
else if (pNode.getNodeValue() != null) {
// NOTE: This is NOT AS SPECIFIED, but we do this to support
// the weirdness that is the javax.imageio.metadata.IIOMetadataNode.
// According to the spec, the nodeValue of an Element is null.
pOut.print(">");
pOut.print(pNode.getNodeValue());
pOut.print("</");
pOut.print(pNode.getTagName());
pOut.println(">");
}
else {
pOut.println("/>");
}