out.write("\n");
}
else {
//now create an FileFormatHit element for each hit
for (int hitCounter = 0; hitCounter < idFile.getNumHits(); hitCounter++) {
FileFormatHit formatHit = idFile.getHit(hitCounter);
out.write(" <FileFormatHit>");
out.write("\n");
out.write(" <Status>" + formatHit.getHitTypeVerbose() + "</Status>");
out.write("\n");
out.write(" <Name>" + formatHit.getFileFormatName().replaceAll("&", "&") + "</Name>");
out.write("\n");
if (formatHit.getFileFormatVersion() != null) {
out.write(" <Version>" + formatHit.getFileFormatVersion().replaceAll("&", "&") + "</Version>");
out.write("\n");
}
if (formatHit.getFileFormatPUID() != null) {
out.write(" <PUID>" + formatHit.getFileFormatPUID().replaceAll("&", "&") + "</PUID>");
out.write("\n");
}
if (formatHit.getMimeType() != null) {
out.write(" <MimeType>" + formatHit.getMimeType().replaceAll("&", "&") + "</MimeType>");
out.write("\n");
}
if (!"".equals(formatHit.getHitWarning())) {
out.write(" <IdentificationWarning>"
+ formatHit.getHitWarning().replaceAll("&", "&") + "</IdentificationWarning>");
out.write("\n");
}
out.write(" </FileFormatHit>");
out.write("\n");
}//end file hit FOR