Package edu.harvard.hul.ois.jhove

Examples of edu.harvard.hul.ois.jhove.Module


  public ToolOutput extractInfo(File file) throws FitsToolException {
    Document dom = null;
    try {
      dom = characterize(file);
      String jhoveModule = XmlUtils.getDomValue(dom,"reportingModule");
      Module mod = jhove.getModule(jhoveModule);
      dom = getFileInfo(file,mod);
    } catch (Exception e) {
      throw new FitsToolException("Jhove error while processing "+file.getName(),e);
    }
    catch (OutOfMemoryError e) {
View Full Code Here


            jhove.setEncoding("utf-8");
            jhove.setTempDirectory(OS.getTmpPath());
           

            // load all module
            Module module = null;

            XmlHandler aboutHandler = new XmlHandler();
            OutputStream out = newOutputStream(new StringBuffer());
            aboutHandler.setWriter(new PrintWriter(out));
            String s = new File(filePathName).toURI().toString();
View Full Code Here

TOP

Related Classes of edu.harvard.hul.ois.jhove.Module

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.