Esempio n. 1
0
 JFIFThumbJPEG(Node node) throws IIOInvalidTreeException {
   if (node.getChildNodes().getLength() > 1) {
     throw new IIOInvalidTreeException("JFIFThumbJPEG node must have 0 or 1 child", node);
   }
   Node child = node.getFirstChild();
   if (child != null) {
     String name = child.getNodeName();
     if (!name.equals("markerSequence")) {
       throw new IIOInvalidTreeException(
           "JFIFThumbJPEG child must be a markerSequence node", node);
     }
     thumbMetadata = new JPEGMetadata(false, true);
     thumbMetadata.setFromMarkerSequenceNode(child);
   }
 }