Class Excel

java.lang.Object
me.saro.kit.ee.excel.Excel

public class Excel
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    Excel()  
  • Method Summary

    Modifier and Type Method Description
    static void open​(java.io.File file, me.saro.kit.functions.ThrowableConsumer<org.apache.poi.ss.usermodel.Workbook> callback)  
    static void rowStream​(java.io.File file, int sheetIndex, me.saro.kit.functions.ThrowableConsumer<java.util.stream.Stream<org.apache.poi.ss.usermodel.Row>> callback)  
    static java.util.Date toDate​(org.apache.poi.ss.usermodel.Cell cell, java.util.Date defaultValue)  
    static double toDouble​(org.apache.poi.ss.usermodel.Cell cell)  
    static double toDouble​(org.apache.poi.ss.usermodel.Cell cell, double defaultValue)  
    static java.lang.String toString​(org.apache.poi.ss.usermodel.Cell cell)  

    Methods inherited from class java.lang.Object

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

    • Excel

      public Excel()
  • Method Details

    • open

      public static void open​(java.io.File file, me.saro.kit.functions.ThrowableConsumer<org.apache.poi.ss.usermodel.Workbook> callback) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • rowStream

      public static void rowStream​(java.io.File file, int sheetIndex, me.saro.kit.functions.ThrowableConsumer<java.util.stream.Stream<org.apache.poi.ss.usermodel.Row>> callback) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • toDouble

      public static double toDouble​(org.apache.poi.ss.usermodel.Cell cell, double defaultValue)
    • toDouble

      public static double toDouble​(org.apache.poi.ss.usermodel.Cell cell)
    • toDate

      public static java.util.Date toDate​(org.apache.poi.ss.usermodel.Cell cell, java.util.Date defaultValue)
    • toString

      public static java.lang.String toString​(org.apache.poi.ss.usermodel.Cell cell)