/** * Display the entries of multiple POIFS files * * @param args the names of the files to be displayed */ public static void main(final String args[]) throws IOException { if (args.length == 0) { System.err.println("Must specify at least one file to view"); System.exit(1); } boolean withSizes = false; boolean newPOIFS = true; for (String arg : args) { if (arg.equalsIgnoreCase("-size") || arg.equalsIgnoreCase("-sizes")) { withSizes = true; } else if (arg.equalsIgnoreCase("-old") || arg.equalsIgnoreCase("-old-poifs")) { newPOIFS = false; } else { if (newPOIFS) { viewFile(arg, withSizes); } else { viewFileOld(arg, withSizes); } } } }
/** * Display the entries of multiple POIFS files * * @param args the names of the files to be displayed */ public static void main(final String args[]) throws IOException { if (args.length == 0) { System.err.println("Must specify at least one file to view"); System.exit(1); } boolean withSizes = false; boolean newPOIFS = true; for (int j = 0; j < args.length; j++) { if (args[j].equalsIgnoreCase("-size") || args[j].equalsIgnoreCase("-sizes")) { withSizes = true; } else if (args[j].equalsIgnoreCase("-old") || args[j].equalsIgnoreCase("-old-poifs")) { newPOIFS = false; } else { if(newPOIFS) { viewFile(args[j], withSizes); } else { viewFileOld(args[j], withSizes); } } } }
/** * Display the entries of multiple POIFS files * * @param args the names of the files to be displayed */ public static void main(final String args[]) throws IOException { if (args.length == 0) { System.err.println("Must specify at least one file to view"); System.exit(1); } boolean withSizes = false; boolean newPOIFS = true; for (String arg : args) { if (arg.equalsIgnoreCase("-size") || arg.equalsIgnoreCase("-sizes")) { withSizes = true; } else if (arg.equalsIgnoreCase("-old") || arg.equalsIgnoreCase("-old-poifs")) { newPOIFS = false; } else { if (newPOIFS) { viewFile(arg, withSizes); } else { viewFileOld(arg, withSizes); } } } }
/** * Display the entries of multiple POIFS files * * @param args the names of the files to be displayed */ public static void main(final String args[]) throws IOException { if (args.length == 0) { System.err.println("Must specify at least one file to view"); System.exit(1); } boolean withSizes = false; boolean newPOIFS = true; for (int j = 0; j < args.length; j++) { if (args[j].equalsIgnoreCase("-size") || args[j].equalsIgnoreCase("-sizes")) { withSizes = true; } else if (args[j].equalsIgnoreCase("-old") || args[j].equalsIgnoreCase("-old-poifs")) { newPOIFS = false; } else { if(newPOIFS) { viewFile(args[j], withSizes); } else { viewFileOld(args[j], withSizes); } } } }