System.out.println("convert file:" + source + " to:" + result);
System.out.println("convert file:" + source);
    public void convert() {        if (parser == null) {            parser = ParserBuilder.createDefaultParser();        }        File f = new File(this.sourceFile);        if (f.exists() && f.isFile()) {            parseFile(f, this.destinationFile);        } else if (f.isDirectory()) {            File[] files = f.listFiles();            for (int i = 0; i < files.length; i++) {                if (files[i].getName().toLowerCase().endsWith(".dxf")) {                    try {                        String source = files[i].getCanonicalPath();                        String extension = null;                        if (gzip) {                            extension = ".svgz";                        } else {                            extension = ".svg";                        }                        String result = source.substring(0,                                source.toLowerCase().lastIndexOf(".dxf")) +                            extension;                        System.out.println("convert file:" + source + " to:" +                            result);                        parseFile(files[i], result);                    } catch (IOException e) {                        e.printStackTrace();                    }                }            }        }    }