}
for(File f : problemsDir.listFiles()) {
if(f.getName().equals("CVS")) {
continue;
}
FitsOutput output = fits.examine(f);
/*
assertNotNull(output.getFileInfoElements());
assertNotNull(output.getFileStatusElements());
assertNotNull(output.getTechMetadataElements());
assertNotNull(output.getTechMetadataType());
assertNotNull(output.getErrorMessages());
assertNotNull(output.checkWellFormed());
assertNotNull(output.checkValid());
assertNotNull(output.getMetadataElement("md5checksum").getValue());
*/
String errorText = output.getErrorMessages();
XmlContent xml = output.getStandardXmlContent();
if(xml != null) {
XMLStreamWriter writer = xmlof.createXMLStreamWriter(System.out);
xml.output(writer);
writer.close();
}
System.out.println(errorText);
System.out.println("valid = "+output.checkValid());
System.out.println("well-formed = "+output.checkWellFormed());
System.out.println(output.getMetadataElement("md5checksum").getValue());
}
}