All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.millij.poi.ss.handler.RowListener Maven / Gradle / Ivy

package io.github.millij.poi.ss.handler;

import io.github.millij.poi.ss.reader.SpreadsheetReader;


/**
 * An abstract representation of Row level Callback for {@link SpreadsheetReader} implementations.
 */
public interface RowListener {

    /**
     * This method will be called after every row by the {@link SpreadsheetReader} implementation.
     * 
     * @param rowNum the Row Number in the sheet. (indexed from 0)
     * @param rowObj the java bean constructed using the Row data.
     */
    void row(int rowNum, T rowObj);


    // Default Methods

    /**
     * This method will be called before every row by the {@link SpreadsheetReader} implementation.
     * 
     * @param rowNum the Row Number in the sheet. (indexed from 0)
     */
    default void beforeRow(final int rowNum) {
        //
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy