@Test public void testGetMix() throws Exception { File root = temp.getRoot(); File imageFile = new File(root, "test.tif"); FileUtils.copyURLToFile(TiffImporterTest.class.getResource("testscan.tiff"), imageFile); JHoveOutput output = JhoveUtility.getMix(imageFile, root, null, MetsUtils.getCurrentDate(), "testscan.tiff"); assertNotNull(output); Mix mix = output.getMix(); assertNotNull(mix); String toXml = MixUtils.toXml(mix, true); assertEquals(toXml, "image/tiff", mix.getBasicDigitalObjectInformation() .getFormatDesignation().getFormatName().getValue()); }
public static JHoveOutput getMix(File sourceFile, File tempFolder, MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName ) throws MetsExportException { JhoveContext ctx = createContext(tempFolder); return getMix(sourceFile, ctx, deviceMix, dateCreated, null); }
JhoveUtility { public static JHoveOutput getMix(File sourceFile, File tempFolder, MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName ) throws MetsExportException { JhoveContext ctx = createContext(tempFolder); return getMix(sourceFile, ctx, deviceMix, dateCreated, null); } }
JhoveUtility { public static JHoveOutput getMix(File sourceFile, File tempFolder, MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName ) throws MetsExportException { JhoveContext ctx = createContext(tempFolder); return getMix(sourceFile, ctx, deviceMix, dateCreated, null); }  }
JhoveUtility { public static JHoveOutput getMix(File sourceFile, File tempFolder, MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName ) throws MetsExportException { JhoveContext ctx = createContext(tempFolder); return getMix(sourceFile, ctx, deviceMix, dateCreated, null); }  static Node getNodeRecursive(Node node, String localName); static void initJhove(MetsContext metsContext); static JhoveContext createContext(); static JhoveContext createContext(File configFolder); static JHoveOutput getMix(File sourceFile, File tempFolder,
            MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName
            ); static JHoveOutput getMix(File targetFile, MetsContext metsContext, MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName); static JHoveOutput getMixFromFedora(IMetsElement metsElement, String streamName); static void mergeMix(Mix source, MixType deviceMix); static void insertImageCaptureMetadata(Mix mix, XMLGregorianCalendar dateCreated); static void insertObjectIdentifier(Mix mix, String pid, String datastream); static void insertChangeHistory(Mix mix, XMLGregorianCalendar dateCreated, String originalFileName); static JHoveOutput getMix(File sourceFile, JhoveContext jhoveContext,
            MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName
            ); static void destroyConfigFiles(JhoveContext ctx); static void addDenominator(JHoveOutput jhoveOutput); static void addPhotometricInformation(JHoveOutput jhoveOutput, PhotometricInterpretation photometricInterpretation); static void addOrientation(JHoveOutput jhoveOutput); }
JhoveUtility { public static JHoveOutput getMix(File sourceFile, File tempFolder, MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName ) throws MetsExportException { JhoveContext ctx = createContext(tempFolder); return getMix(sourceFile, ctx, deviceMix, dateCreated, null); }  static Node getNodeRecursive(Node node, String localName); static void initJhove(MetsContext metsContext); static JhoveContext createContext(); static JhoveContext createContext(File configFolder); static JHoveOutput getMix(File sourceFile, File tempFolder,
            MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName
            ); static JHoveOutput getMix(File targetFile, MetsContext metsContext, MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName); static JHoveOutput getMixFromFedora(IMetsElement metsElement, String streamName); static void mergeMix(Mix source, MixType deviceMix); static void insertImageCaptureMetadata(Mix mix, XMLGregorianCalendar dateCreated); static void insertObjectIdentifier(Mix mix, String pid, String datastream); static void insertChangeHistory(Mix mix, XMLGregorianCalendar dateCreated, String originalFileName); static JHoveOutput getMix(File sourceFile, JhoveContext jhoveContext,
            MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName
            ); static void destroyConfigFiles(JhoveContext ctx); static void addDenominator(JHoveOutput jhoveOutput); static void addPhotometricInformation(JHoveOutput jhoveOutput, PhotometricInterpretation photometricInterpretation); static void addOrientation(JHoveOutput jhoveOutput);  }