Package edu.harvard.hul.ois.jhove

Examples of edu.harvard.hul.ois.jhove.JhoveBase.dispatch()


                          errorStream)) {

                NullHandler nullHandler = new NullHandler();

                try {
                  jhoveBase.dispatch(_app,
                             null,
                             null,
                             nullHandler,
                             null,
                             new String[] {partFileName});
View Full Code Here


            else if (mnfe.mediaType.startsWith(IMG_TYPE)) {
              // For the files in the Picture directory
              NullHandler nullHandler = new NullHandler();

              try {
                jhoveBase.dispatch(_app,
                           null,
                           null,
                           nullHandler,
                           null,
                           new String[] {partFileName});
View Full Code Here

            aboutHandler.setWriter(new PrintWriter(out));
            String s = new File(filePathName).toURI().toString();
            String[] dirFileOrUri = new String[] { s };

            // execute jhove
            jhove.dispatch(app, module, aboutHandler, aboutHandler, outputFile,
                    dirFileOrUri);
        } catch (Exception e) {
            log.error("could not execute jhove: "+e.getMessage(),e);
        }
    }
View Full Code Here

            App app = new App(PLANETS, PLANETS, date, PLANETS, PLANETS);
            base.init(config() + CONFIG_FILE, null);
            /* For JHOVE's output, we create another temporary file: */
            File output = File.createTempFile(OUTPUT, null);
            output.deleteOnExit();
            base.dispatch(app, null, null, new TextHandler(), output
                    .getAbsolutePath(), new String[] { temporary
                    .getAbsolutePath() });
            /* And finally we create our result object with the PRONOM ID: */
            return result(base);
        } catch (JhoveException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.