edu.uiuc.ndiipp.hubandspoke.utils.jhove
Class TechMDAugmenter
java.lang.Object
edu.uiuc.ndiipp.hubandspoke.utils.jhove.TechMDAugmenter
public class TechMDAugmenter
- extends java.lang.Object
Inserts JHOVE generated technical metadata into the METS profile.
This class will read in a METS file
then to use JHOVE to create and insert technical
metadata for all the content files.
The main procedure, addJhoveToProfile, takes as a
parameter the HaSMETSProfile.
- Author:
- Bill Ingram
|
Method Summary |
static boolean |
addJhoveToProfile(HaSMETSProfile profile)
Cycles through the files, uses JHOVE to generate techMD, and inserts the MIME-specific
techMD into the profile. |
static void |
XMLToStream(org.w3c.dom.Node n,
java.io.PrintStream stream)
Transform XML to stream |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TechMDAugmenter
public TechMDAugmenter()
addJhoveToProfile
public static boolean addJhoveToProfile(HaSMETSProfile profile)
- Cycles through the files, uses JHOVE to generate techMD, and inserts the MIME-specific
techMD into the profile.
If the MIME-type detected by JHOVE conflicts with the MIME type given by the profile,
an warning is logged and inserted into the profile as a PREMIS event.
If the MIME-type is one not supported (e.g., application/octet-stream), a warning is
generated and inserted as a PREMIS event as well.
- Parameters:
profile - - HaSMETSProfile
XMLToStream
public static void XMLToStream(org.w3c.dom.Node n,
java.io.PrintStream stream)
throws java.lang.Exception
- Transform XML to stream
- Parameters:
n - stream -
- Throws:
java.lang.Exception
Copyright © 2006, University of Illinois.