aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/POIOLE2TextExtractor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/POIOLE2TextExtractor.java')
-rw-r--r--src/java/org/apache/poi/POIOLE2TextExtractor.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/POIOLE2TextExtractor.java b/src/java/org/apache/poi/POIOLE2TextExtractor.java
index 7679136c89..5dd1d755e3 100644
--- a/src/java/org/apache/poi/POIOLE2TextExtractor.java
+++ b/src/java/org/apache/poi/POIOLE2TextExtractor.java
@@ -33,16 +33,28 @@ import org.apache.poi.poifs.filesystem.DirectoryEntry;
* @see org.apache.poi.hwpf.extractor.WordExtractor
*/
public abstract class POIOLE2TextExtractor extends POITextExtractor {
+ /** The POIDocument that's open */
+ protected POIDocument document;
+
/**
* Creates a new text extractor for the given document
*
* @param document The POIDocument to use in this extractor.
*/
public POIOLE2TextExtractor(POIDocument document) {
- super(document);
+ this.document = document;
}
/**
+ * Creates a new text extractor, using the same
+ * document as another text extractor. Normally
+ * only used by properties extractors.
+ */
+ protected POIOLE2TextExtractor(POIOLE2TextExtractor otherExtractor) {
+ this.document = otherExtractor.document;
+ }
+
+ /**
* Returns the document information metadata for the document
*
* @return The Document Summary Information or null