Examples of SpreadsheetParser


Examples of org.formulacompiler.spreadsheet.internal.odf.loader.parser.SpreadsheetParser

  private Spreadsheet readContent( String _fileName, InputStream _inputStream ) throws SpreadsheetException
  {
    final SpreadsheetBuilder spreadsheetBuilder = new SpreadsheetBuilder( ComputationMode.OPEN_OFFICE_CALC );

    try {
      final SpreadsheetParser spreadsheetParser = new SpreadsheetParser( spreadsheetBuilder, this.config );
      final Parser parser = new Parser( Collections.singletonMap( XMLConstants.Office.SPREADSHEET, spreadsheetParser ) );
      parser.parse( _inputStream );
    }
    catch (XMLStreamException e) {
      final Throwable nestedException = e.getNestedException();
View Full Code Here

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
Copyright © 2018 www.massapi.com. 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.