Class BasicExcel

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Excel

    public class BasicExcel
    extends java.lang.Object
    implements Excel
    excel
    Since:
    3.0
    Author:
    PARK Yong Seo
    • Constructor Detail

      • BasicExcel

        protected BasicExcel​(org.apache.poi.ss.usermodel.Workbook book)
    • Method Detail

      • getPoiSheet

        public org.apache.poi.ss.usermodel.Sheet getPoiSheet()
        Specified by:
        getPoiSheet in interface Excel
      • moveSheet

        public Excel moveSheet​(int index)
        Specified by:
        moveSheet in interface Excel
      • getCell

        public ExcelCell getCell​(int rowIndex,
                                 int cellIndex)
        Specified by:
        getCell in interface Excel
      • output

        public Excel output​(java.io.OutputStream os)
                     throws java.io.IOException
        Specified by:
        output in interface Excel
        Throws:
        java.io.IOException
      • autoSizeColumn

        public Excel autoSizeColumn​(int cellIndex)
        autoSizeColumn
        Specified by:
        autoSizeColumn in interface Excel
        Parameters:
        cellIndex -
      • save

        public Excel save​(java.io.File file,
                          boolean overwrite)
                   throws java.io.IOException
        Specified by:
        save in interface Excel
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        close
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException