Class MsExcelRecordWriter

  • All Implemented Interfaces:
    org.jeasy.batch.core.writer.RecordWriter<org.apache.poi.ss.usermodel.Row>

    public class MsExcelRecordWriter
    extends java.lang.Object
    implements org.jeasy.batch.core.writer.RecordWriter<org.apache.poi.ss.usermodel.Row>
    Writer that write MsExcelRecord to a file.
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void writeRecords​(org.jeasy.batch.core.record.Batch<org.apache.poi.ss.usermodel.Row> batch)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jeasy.batch.core.writer.RecordWriter

        open
    • Constructor Detail

      • MsExcelRecordWriter

        public MsExcelRecordWriter​(java.nio.file.Path path,
                                   java.lang.String sheetName)
        Create a new MsExcelRecordWriter.
        Parameters:
        path - to the output file
        sheetName - the sheet name
    • Method Detail

      • writeRecords

        public void writeRecords​(org.jeasy.batch.core.record.Batch<org.apache.poi.ss.usermodel.Row> batch)
                          throws java.lang.Exception
        Specified by:
        writeRecords in interface org.jeasy.batch.core.writer.RecordWriter<org.apache.poi.ss.usermodel.Row>
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface org.jeasy.batch.core.writer.RecordWriter<org.apache.poi.ss.usermodel.Row>
        Throws:
        java.lang.Exception