diff options
author | Dominik Stadler <centic@apache.org> | 2015-05-17 21:26:31 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2015-05-17 21:26:31 +0000 |
commit | 432257dcf225f54ebac648e3a1ba4949f88c8bf3 (patch) | |
tree | de543f11f6a52da631e6f8d263571f575b3d3235 /src/java/org/apache/poi/POIOLE2TextExtractor.java | |
parent | 704125aacf1940353110a43a9870e63cbdbac789 (diff) | |
download | poi-432257dcf225f54ebac648e3a1ba4949f88c8bf3.tar.gz poi-432257dcf225f54ebac648e3a1ba4949f88c8bf3.zip |
Move location where document is held and adjust constructors and class-hierarchy accordingly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1679903 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/POIOLE2TextExtractor.java')
-rw-r--r-- | src/java/org/apache/poi/POIOLE2TextExtractor.java | 14 |
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 |