Package org.openinvoice.ubl4j.core.common.text

Examples of org.openinvoice.ubl4j.core.common.text.OutputFormat


        }
        return outFile;
    }

    public OutputFormat parseCommandlineOutputFormat() throws UBL4JException {
        OutputFormat outputFormat = null;
        String outputFormatStr = options.outputFormat;
        if (outputFormatStr != null) {
            try {
                outputFormat = OutputFormat.valueOf(outputFormatStr.toUpperCase());
            } catch (IllegalArgumentException e) {
View Full Code Here


        this.fileLogger = fileLogger;
    }

    private InvoiceCreationInput initOutputOptions(InvoiceCreationInput input)
            throws UBL4JException, IOException {
        OutputFormat invoiceOutputFormat =  parseCommandlineOutputFormat();
        File invoiceOutputFile = parseCommandLineOutputFile();
        Template invoiceTemplate = parseCommandLineOptionTemplate();
        if (invoiceOutputFormat != null) {
            input.setInvoiceOutputFormat(invoiceOutputFormat);
        }
View Full Code Here

        this.invoiceToBeRendered = invoiceToBeRendered;
    }

    public void initFromInvoiceCreationInput(InvoiceCreationInput creationInput) throws IOException {
        if (creationInput != null) {
            OutputFormat of = creationInput.getInvoiceOutputFormat();
            if (of != null) {
                setInvoiceOutputFormat(of);
            }
            OutputStream os = creationInput.getInvoiceOutputStream();
            if (os != null) {
View Full Code Here

TOP

Related Classes of org.openinvoice.ubl4j.core.common.text.OutputFormat

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.