aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2020-01-17 08:46:24 +0000
committerDominik Stadler <centic@apache.org>2020-01-17 08:46:24 +0000
commit5927fd37f2695dacfd4de8244b274fd7798b3202 (patch)
tree0cda68f4bd258858d9cd2b99066e0b4d739a57b3 /src
parent1bcaa30bed3c5d1bb592d36353fdbe0ccbac8a9e (diff)
downloadpoi-5927fd37f2695dacfd4de8244b274fd7798b3202.tar.gz
poi-5927fd37f2695dacfd4de8244b274fd7798b3202.zip
Adjust JavaDoc for stream-based reading of large workbooks
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872903 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java b/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
index af6aedfbd0..c71468a3ce 100644
--- a/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
+++ b/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
@@ -37,9 +37,15 @@ import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
/**
- * This class handles the processing of a sheet#.xml
+ * This class handles the streaming processing of a sheet#.xml
* sheet part of a XSSF .xlsx file, and generates
* row and cell events for it.
+ *
+ * This allows to build functionality which reads huge files
+ * without needing large amounts of main memory.
+ *
+ * See {@link SheetContentsHandler} for the interface that
+ * you need to implement for reading information from a file.
*/
public class XSSFSheetXMLHandler extends DefaultHandler {
private static final POILogger logger = POILogFactory.getLogger(XSSFSheetXMLHandler.class);
@@ -498,8 +504,13 @@ public class XSSFSheetXMLHandler extends DefaultHandler {
}
/**
- * You need to implement this to handle the results
- * of the sheet parsing.
+ * This interface allows to provide callbacks when reading
+ * a sheet in streaming mode.
+ *
+ * The XSLX file is usually read via {@link XSSFReader}.
+ *
+ * By implementing the methods, you can process arbitrarily
+ * large files without exhausting main memory.
*/
public interface SheetContentsHandler {
/** A row with the (zero based) row number has started */