Example usage for org.apache.poi.xssf.extractor XSSFEventBasedExcelExtractor setFormulasNotResults

List of usage examples for org.apache.poi.xssf.extractor XSSFEventBasedExcelExtractor setFormulasNotResults

Introduction

In this page you can find the example usage for org.apache.poi.xssf.extractor XSSFEventBasedExcelExtractor setFormulasNotResults.

Prototype

public void setFormulasNotResults(boolean formulasNotResults) 

Source Link

Document

Should we return the formula itself, and not the result it produces?

Usage

From source file:mj.ocraptor.extraction.tika.parser.microsoft.ooxml.XSSFExcelExtractorDecorator.java

License:Apache License

public XSSFExcelExtractorDecorator(ParseContext context, XSSFEventBasedExcelExtractor extractor, Locale locale,
        Metadata metadata) {/*from   www .  j  a  v a  2 s . co m*/
    super(context, extractor);
    this.metadata = metadata;
    this.extractor = extractor;

    extractor.setFormulasNotResults(false);
    extractor.setLocale(locale);

    if (locale == null) {
        formatter = new DataFormatter();
    } else {
        formatter = new DataFormatter(locale);
    }
}

From source file:org.apache.tika.parser.microsoft.ooxml.XSSFExcelExtractorDecorator.java

License:Apache License

public XSSFExcelExtractorDecorator(ParseContext context, XSSFEventBasedExcelExtractor extractor,
        Locale locale) {//from  w  w  w  . j a  v a 2 s.c  o  m
    super(context, extractor);

    this.extractor = extractor;
    extractor.setFormulasNotResults(false);
    extractor.setLocale(locale);

    if (locale == null) {
        formatter = new DataFormatter();
    } else {
        formatter = new DataFormatter(locale);
    }
}