Example usage for org.apache.poi.ss.examples.html XSSFHtmlHelper XSSFHtmlHelper

List of usage examples for org.apache.poi.ss.examples.html XSSFHtmlHelper XSSFHtmlHelper

Introduction

In this page you can find the example usage for org.apache.poi.ss.examples.html XSSFHtmlHelper XSSFHtmlHelper.

Prototype

XSSFHtmlHelper

Source Link

Usage

From source file:cn.edu.zucc.chenxg.preview.ToHtml.java

License:Apache License

private void setupColorMap() {
    if (wb instanceof HSSFWorkbook)
        helper = new HSSFHtmlHelper((HSSFWorkbook) wb);
    else if (wb instanceof XSSFWorkbook)
        helper = new XSSFHtmlHelper();
    else/* w w  w.  j  a  v a 2 s.co m*/
        throw new IllegalArgumentException("unknown workbook type: " + wb.getClass().getSimpleName());
}

From source file:uk.co.certait.test.ExcelToHtmlConverter.java

License:Apache License

private void setupColorMap() {
    if (wb instanceof HSSFWorkbook) {
        helper = new HSSFHtmlHelper((HSSFWorkbook) wb);
    } else if (wb instanceof XSSFWorkbook) {
        helper = new XSSFHtmlHelper();
    } else {//from  w  w  w. java 2s .  co m
        throw new IllegalArgumentException("unknown workbook type: " + wb.getClass().getSimpleName());
    }
}