mirror of
https://github.com/apache/poi.git
synced 2025-02-07 10:38:12 +00:00
Fix example. If you don't call super for the non-ignored sheets, everything breaks because you end up with an empty workbook.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58219 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722457 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b37b0d47d
commit
38017a61de
@ -43,8 +43,8 @@ public class HybridStreaming {
|
||||
XSSFWorkbook workbook = new XSSFWorkbook(sourceBytes) {
|
||||
/** Avoid DOM parse of large sheet */
|
||||
public void parseSheet(java.util.Map<String,XSSFSheet> shIdMap, CTSheet ctSheet) {
|
||||
if (SHEET_TO_STREAM.equals(ctSheet.getName())) {
|
||||
return;
|
||||
if (!SHEET_TO_STREAM.equals(ctSheet.getName())) {
|
||||
super.parseSheet(shIdMap, ctSheet);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user