String filename = args[ndx];
- SlideShowRecordDumper foo = new SlideShowRecordDumper(System.out,
- filename, verbose, escher);
-
- foo.printDump();
-
- foo.doc.close();
+ SlideShowRecordDumper foo = new SlideShowRecordDumper(System.out, filename, verbose, escher);
+ try {
+ foo.printDump();
+ } finally {
+ foo.doc.close();
+ }
}
public static void printUsage() {
@Test
void testMain() throws IOException {
+ SlideShowRecordDumper.main(new String[] {});
+
SlideShowRecordDumper.main(new String[] {
HSLFTestDataSamples.getSampleFile("slide_master.ppt").getAbsolutePath(),
});