Open TYB-LuoYun opened 2 months ago
请大佬帮忙解答下,先谢谢了 能够重复读取么?如果我想先读下有哪些sheet,再读取sheet内容的话,该怎么写? 能够主动中断读取么?我只想读取标题行,不想读取内容,有时候内容多耗费时间但是我只想读取标题行
主动中断读取,只读标题,不读内容: 在读取时指定headRowNumber(),然后重写ReadListener的public boolean hasNext(AnalysisContext context) 方法,这样会在遍历完自定义的Listener后,停止遍历。不知是否满足你的需求:
请大佬帮忙解答下,先谢谢了 能够重复读取么?如果我想先读下有哪些sheet,再读取sheet内容的话,该怎么写? 能够主动中断读取么?我只想读取标题行,不想读取内容,有时候内容多耗费时间但是我只想读取标题行