*/
public void print(final IdentificationResultCollection results,
final IdentificationRequest request) throws CommandExecutionException {
final String fileName = (path + request.getFileName()).replace(wrongSlash, slash);
final IdentificationResultCollection containerResults =
getContainerResults(results, request, fileName);
IdentificationResultCollection finalResults = new IdentificationResultCollection(request);
boolean container = false;
if (containerResults.getResults().size() > 0) {
container = true;
finalResults = containerResults;
} else if (results.getResults().size() > 0) {
finalResults = results;
}
if (finalResults.getResults().size() > 0) {
binarySignatureIdentifier.removeLowerPriorityHits(finalResults);
}
if (finalResults.getResults().size() > 0) {
for (IdentificationResult identResult : finalResults.getResults()) {
String puid = identResult.getPuid();
if (!container && JIP_ARCHIVE.equals(puid)) {
puid = ZIP_ARCHIVE;
}
System.out.println(fileName + "," + puid);