Package com.plainsource.commons.text.template

Examples of com.plainsource.commons.text.template.TexTemplate


        super(invoiceType, ubl4JConfigurationBean);
    }

    @Override
    public Template createTemplate(File file) throws IOException {
        return new TexTemplate(file);
    }
View Full Code Here


    public Template createTemplate(File file) throws IOException {
        return new TexTemplate(file);
    }

    public Template createTemplate(InputStream is) throws IOException {
        return new TexTemplate(is);
    }
View Full Code Here

    }

    public static Template createDefaultTemplate(OutputFormat outputFormat, File templateFile) throws IOException {
        switch (outputFormat) {
            case TEX:
                return new TexTemplate(templateFile);
            case HTML:
                return new HtmlTemplate(templateFile);
            case PDF:
                return null; // No template is used for PDF output
            default:
View Full Code Here

        }
    }


    public static Template createDefaultTeXTemplate() throws IOException {
        return new TexTemplate(Template.class.getClassLoader().getResourceAsStream("templates/invoice.tex"));
    }
View Full Code Here

TOP

Related Classes of com.plainsource.commons.text.template.TexTemplate

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.