
org.monte.media.exif.DefaultIIOMetadata Maven / Gradle / Ivy
The newest version!
package org.monte.media.exif;
import javax.imageio.metadata.IIOInvalidTreeException;
import javax.imageio.metadata.IIOMetadata;
import javax.imageio.metadata.IIOMetadataNode;
import org.w3c.dom.Node;
public class DefaultIIOMetadata extends IIOMetadata {
private final IIOMetadataNode root;
private final String formatName;
public DefaultIIOMetadata(String formatName, IIOMetadataNode root) {
super(true,
formatName,
"javax.imageio.metadata.IIOMetadataNode",
null,
null);
this.formatName=formatName;
this.root=root;
}
@Override
public boolean isReadOnly() {
return true;
}
@Override
public Node getAsTree(String formatName) {
return root;
}
@Override
public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void reset() {
throw new UnsupportedOperationException("Not supported yet.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy