edu.uiuc.ndiipp.hubandspoke.utils.jhove
Class JhoveGenerator
java.lang.Object
edu.uiuc.ndiipp.hubandspoke.utils.jhove.JhoveGenerator
public class JhoveGenerator
- extends java.lang.Object
This is the main entry point for users of the code.
- Author:
- Howard Ding
|
Method Summary |
static JhoveResult |
analyzeFileNamed(java.lang.String filename,
java.lang.String idType,
java.lang.String idValue)
This is the main entry point for clients. |
static void |
main(java.lang.String[] args)
The main method is just for informal testing. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JhoveGenerator
public JhoveGenerator()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- The main method is just for informal testing.
- Throws:
java.lang.Exception
analyzeFileNamed
public static JhoveResult analyzeFileNamed(java.lang.String filename,
java.lang.String idType,
java.lang.String idValue)
throws edu.harvard.hul.ois.jhove.JhoveException,
java.lang.Exception
- This is the main entry point for clients. Supply a filename, a PREMIS ID type,
a PREMIS ID value, and receive back a JhoveResult that contains the
raw Jhove metadata, the PREMIS object metadata appropriate for the MIME type of
the file, and perhaps another set of metadata if the profile calls for it
for that MIME type.
Note that Jhove must be configured properly for this to work. See the readme.txt
for the project to see how to do this.
- Parameters:
filename - Path to the file to be analyzedidType - ID type of the file to be analyzedidValue - ID value of the file to be analyzed
- Returns:
- JhoveResult containing the original Jhove metadata and
transformed metadata.
- Throws:
edu.harvard.hul.ois.jhove.JhoveException
java.lang.Exception
Copyright © 2006, University of Illinois.