+ public static void main(String[] args)
+ {
+ int i=0;
+ while (i<args.length)
+ {
+ File f = new File(args[i]);
+ if (f.exists())
+ {
+ try {
+ AppletFormatAdapter afa = new AppletFormatAdapter();
+ afa.readFile(args[i], FILE, new IdentifyFile().Identify(args[i], FILE));
+ } catch (Exception e)
+ {
+ System.err.println("Exception when dealing with "+i+"'th argument: "+args[i]+"\n"+e);
+ }
+ } else {
+ System.err.println("Ignoring argument '"+args[i]+"' ("+i+"'th)- not a readable file.");
+ }
+ i++;
+ }
+
+ }