edu.uiuc.ndiipp.hubandspoke.utils.jhove
Class JhoveRawGenerator

java.lang.Object
  extended by edu.uiuc.ndiipp.hubandspoke.utils.jhove.JhoveRawGenerator

public class JhoveRawGenerator
extends java.lang.Object

Does the work of creating raw Jhove metadata from a file.

Author:
Howard Ding

Constructor Summary
JhoveRawGenerator()
          Default constructor.
 
Method Summary
 java.lang.String processFileToString(java.lang.String filename)
          Does the actual work of processing a file and producing Jhove metadata in the form of a String.
 org.w3c.dom.Document processFileToXML(java.lang.String filename)
          Does the work of processing a file to an XML Document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JhoveRawGenerator

public JhoveRawGenerator()
                  throws edu.harvard.hul.ois.jhove.JhoveException
Default constructor. Sets some parameters for JhoveBase.

Throws:
edu.harvard.hul.ois.jhove.JhoveException
Method Detail

processFileToString

public java.lang.String processFileToString(java.lang.String filename)
                                     throws java.lang.Exception
Does the actual work of processing a file and producing Jhove metadata in the form of a String.

Parameters:
filename - Path to the file to be analyzed
Returns:
XML generated by Jhove as a String
Throws:
java.lang.Exception

processFileToXML

public org.w3c.dom.Document processFileToXML(java.lang.String filename)
                                      throws java.lang.Exception
Does the work of processing a file to an XML Document. This is the intended method for clients to use.

Parameters:
filename - Path to the file to be analyzed
Returns:
XML generated by Jhove as a DOM document
Throws:
java.lang.Exception


Copyright © 2006, University of Illinois.