Package xdoclet.template

Examples of xdoclet.template.PrettyPrintWriter


            String content = FileManager.getURLContent(((TemplateSubTask) getDocletContext().getActiveSubTask()).getTemplateURL());

            if (content != null) {
                try {
                    PrettyPrintWriter out = new PrettyPrintWriter(new BufferedWriter(new FileWriter(file)));

                    getEngine().setWriter(out);
                    getEngine().setCurrentLineNum(0);
                    generate(content);
                    out.close();
                }
                catch (IOException ex) {
                    log.error("An error occured while writing output to file " + file, ex);
                }
            }
View Full Code Here

TOP

Related Classes of xdoclet.template.PrettyPrintWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.