public void generate(File destFile) throws IOException, CdlException { String destname = destFile.getAbsolutePath(); if (log.isDebugEnabled()) { log.debug("Writing to " + destname); }   GenerateContext context = new GenerateContext(); context.begin(destFile); document.toSmartFrog(context); context.end();
public void generate(String filename) throws IOException, CdlException { File destFile; destFile = new File(filename); generate(destFile);
    public void generate(File destFile) throws IOException, CdlException {        String destname = destFile.getAbsolutePath();        if (log.isDebugEnabled()) {            log.debug("Writing to " + destname);        }        //ask the doc to print itself        GenerateContext context = new GenerateContext();        context.begin(destFile);        document.toSmartFrog(context);        context.end();    }