public static void main(String[] args) throws Exception {
        PropertyConfigurator.configure(new Properties());
        PrudentHttpEntityResolver.setUserAgent("Mozilla/5.0 (automated dmoz downloader)");
        PrudentHttpEntityResolver.setParams(5000, 5000, 10);
        BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(args[0]), "utf-8"));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(new FileOutputStream(args[1]), "utf-8"), true);
        File rootDir = new File(args[2]);
        for (int i = 0; i < 8; i++) {
            (new Thread(new Downloader(in, out, rootDir))).start();
        }
    }
@param in
@param out
@param rootDir
@param resolver
resources/examples/research-src/nu/validator/dmozdl/Downloader.java