@Test
    public void t23PageReadListener07() {
        //Read the first 5 rows of an Excel file
        EasyExcel.read(file07, SimpleData.class,
                new PageReadListener<SimpleData>(dataList -> {
                    Assertions.assertEquals(5, dataList.size());
                }, 5))
            .sheet().doRead();
    }
Test page reading with PageReadListener
<p>
PageReadListener processes Excel data in batches, triggering callbacks when reaching
specified batch size. {@link PageReadListener#invoke}
Useful for large files to prevent memory overflow
</p>
fastexcel-test/src/test/java/cn/idev/excel/test/core/simple/SimpleDataTest.java