*/
private List<URI> identifyOneBinary(final File tempFile) {
// Determine the config directory:
String sigFileLocation = sigFileFolder();
// Here we start using the Droid API:
AnalysisController controller = new AnalysisController();
try {
controller.readSigFile(sigFileLocation);
} catch (Exception e) {
e.printStackTrace();
log.severe("Failed to read sig file");
}
log.info("Attempting to identify " + tempFile.getAbsolutePath());
log.info("File is of length " + tempFile.length());
controller.addFile(tempFile.getAbsolutePath());
controller.setVerbose(false);
controller.runFileFormatAnalysis();
Iterator<IdentificationFile> iterator = controller.getFileCollection()
.getIterator();
// We identify one file only:
if (iterator.hasNext()) {
IdentificationFile file = iterator.next();
waitFor(file);