com.namics.oss.java.tools.utils.excel.ExcelMapReader Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2000-2016 Namics AG. All rights reserved.
*/
package com.namics.oss.java.tools.utils.excel;
import org.apache.poi.ss.usermodel.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.io.PushbackInputStream;
import java.util.*;
/**
* ExcelMapReader.
*
* @author tzehnder, Namics AG
* @since 05.10.2016 12:53
*/
public class ExcelMapReader {
private static final Logger LOG = LoggerFactory.getLogger(ExcelMapReader.class);
public static final int DEFAULT_HEADER_ROW = 0;
protected int headerRow = DEFAULT_HEADER_ROW;
/**
* Read the excel file and map rows to maps
*
* @param input input stream of the excel to read
* @return List of maps read form excel
* @throws ExcelException runtime exception when excel processing failed
*/
public List