System.out.println("engine initialized");  int iterations = Integer.parseInt(args[2]); String outfile = args[1]; System.out.println("args : image captcha engine class='" + args[0] + "', " + "output dir='" + args[1] + "'" + ",iterations='" + args[2] + "'");  if(args[0].equals("all")){ generate(iterations, new BasicListGimpyEngine(), outfile); generate(iterations, new BaffleListGimpyEngine(), outfile); generate(iterations, new DefaultGimpyEngine(), outfile); generate(iterations, new DeformedBaffleListGimpyEngine(), outfile); generate(iterations, new DoubleRandomListGimpyEngine(), outfile); generate(iterations, new SimpleListImageCaptchaEngine(), outfile); generate(iterations, new SimpleFishEyeEngine(), outfile);  }else{  ImageCaptchaEngine  pixCapchaEngine= (ImageCaptchaEngine) Class.forName( args[0]) .newInstance(); System.out.println("Beginning generation"); generate(iterations, pixCapchaEngine, outfile); }
    public static void main(String[] args) throws Exception    {        if(args.length<2){            System.out.println("Usage : engineClassName outputDir iterations");            System.exit(1);        }          System.out.println("engine initialized");        int iterations = Integer.parseInt(args[2]);        String outfile = args[1];        System.out.println("args : image captcha engine class='" + args[0]                + "', " +                "output dir='" + args[1] + "'" +                ",iterations='" + args[2] + "'");        if(args[0].equals("all")){             generate(iterations, new BasicListGimpyEngine(), outfile);            generate(iterations, new BaffleListGimpyEngine(), outfile);            generate(iterations, new DefaultGimpyEngine(), outfile);            generate(iterations, new DeformedBaffleListGimpyEngine(), outfile);            generate(iterations, new DoubleRandomListGimpyEngine(), outfile);            generate(iterations, new SimpleListImageCaptchaEngine(), outfile);            generate(iterations, new SimpleFishEyeEngine(), outfile);        }else{        ImageCaptchaEngine  pixCapchaEngine= (ImageCaptchaEngine) Class.forName(                args[0])                .newInstance();        System.out.println("Beginning generation");            generate(iterations, pixCapchaEngine, outfile);        }        //ImageToFile encoder = new ImageToFile();        System.exit(0);    }