Class PoiImportExportUtil


  • public class PoiImportExportUtil
    extends java.lang.Object

    Usefull class for reading certain excel properties and values

    Author:
    Hylke Stapersma
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> getSheetNames​(java.io.File excelFile)
      Get sheet name from excel file
      static java.util.List<java.lang.String> getSheetNames​(java.io.InputStream inputStream)  
      static java.util.List<java.lang.String> readExcelFiles​(java.lang.String path)
      Get excel files from a certain path
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PoiImportExportUtil

        public PoiImportExportUtil()
    • Method Detail

      • getSheetNames

        public static java.util.List<java.lang.String> getSheetNames​(java.io.File excelFile)

        Get sheet name from excel file

        Parameters:
        excelFile - excel file to read
        Returns:
        a list of sheet names
      • getSheetNames

        public static java.util.List<java.lang.String> getSheetNames​(java.io.InputStream inputStream)
      • readExcelFiles

        public static java.util.List<java.lang.String> readExcelFiles​(java.lang.String path)

        Get excel files from a certain path

        Parameters:
        path - list excel files on specific path
        Returns:
        list of file names on a path