private void writeSuperBox(IIOMetadataNode node) throws IOException { NodeList list = node.getChildNodes(); String name = node.getNodeName(); if (name.startsWith("JPEG2000")) { stream.writeInt(computeLength(node)); stream.writeInt(Box.getTypeInt((String)Box.getTypeByName(name))); otherLength += 8; } for (int i = 0; i < list.getLength(); i++) { IIOMetadataNode child = (IIOMetadataNode)list.item(i); name = child.getNodeName(); if (name.startsWith("JPEG2000") && format.isLeaf(name)) writeBox(child); else writeSuperBox(child); } }
private void writeSuperBox(IIOMetadataNode node) throws IOException { NodeList list = node.getChildNodes(); String name = node.getNodeName(); if (name.startsWith("JPEG2000")) { stream.writeInt(computeLength(node)); stream.writeInt(Box.getTypeInt((String)Box.getTypeByName(name))); otherLength += 8; } for (int i = 0; i < list.getLength(); i++) { IIOMetadataNode child = (IIOMetadataNode)list.item(i); name = child.getNodeName(); if (name.startsWith("JPEG2000") && format.isLeaf(name)) writeBox(child); else writeSuperBox(child); } }
private void writeSuperBox(IIOMetadataNode node) throws IOException { NodeList list = node.getChildNodes(); String name = node.getNodeName(); if (name.startsWith("JPEG2000")) { stream.writeInt(computeLength(node)); stream.writeInt(Box.getTypeInt((String)Box.getTypeByName(name))); otherLength += 8; } for (int i = 0; i < list.getLength(); i++) { IIOMetadataNode child = (IIOMetadataNode)list.item(i); name = child.getNodeName(); if (name.startsWith("JPEG2000") && format.isLeaf(name)) writeBox(child); else writeSuperBox(child); } }
if (s.startsWith("JPEG2000")) { addAttribute(s, "Length", DATATYPE_INTEGER, true, null); addAttribute(s, "Type", DATATYPE_STRING, true, Box.getTypeByName(s)); addAttribute(s, "ExtraLength", DATATYPE_STRING, false, null); Class c = Box.getBoxClass(Box.getTypeInt(Box.getTypeByName(s)));
if (s.startsWith("JPEG2000")) { addAttribute(s, "Length", DATATYPE_INTEGER, true, null); addAttribute(s, "Type", DATATYPE_STRING, true, Box.getTypeByName(s)); addAttribute(s, "ExtraLength", DATATYPE_STRING, false, null); Class c = Box.getBoxClass(Box.getTypeInt(Box.getTypeByName(s)));
if (s.startsWith("JPEG2000")) { addAttribute(s, "Length", DATATYPE_INTEGER, true, null); addAttribute(s, "Type", DATATYPE_STRING, true, Box.getTypeByName(s)); addAttribute(s, "ExtraLength", DATATYPE_STRING, false, null); Class c = Box.getBoxClass(Box.getTypeInt(Box.getTypeByName(s)));