Package org.orangegears.parser

Examples of org.orangegears.parser.SpreadSheetParser


                e.printStackTrace();
            }
            inputMap = (Map<String, Object>) resultMap
                    .get("glAccountTotalsMap");
        }
        SpreadSheetParser ssParser = null;
        String contentType = (String) reportTemplate.get(0).get(
                "fileContentType");
        if (contentType
                .equals("application/vnd.oasis.opendocument.spreadsheet"))
            ssParser = new ODSSpreadSheetParser(templateFile, inputMap);
        else if (contentType.equals("application/vnd.ms-excel"))
            ssParser = new XLSSpreadSheetParser(templateFile, inputMap);
        else
            return ServiceUtil.returnError("Unsupport file format");

        File output = ssParser.getParsedFile();

        FileInputStream fis = null;
        try {
            fis = new FileInputStream(output);
        } catch (FileNotFoundException e) {
View Full Code Here

TOP

Related Classes of org.orangegears.parser.SpreadSheetParser

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.