aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/POIDocument.java
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2010-12-29 07:28:10 +0000
committerNick Burch <nick@apache.org>2010-12-29 07:28:10 +0000
commitd004673137ef3f80e55f6438ae998b04734ace35 (patch)
treee2e918deda58d7eca311ed8ca5ebdb531582f8ee /src/java/org/apache/poi/POIDocument.java
parent3a0d6d3f8e88cce47a7fc07b80480191334925a6 (diff)
downloadpoi-d004673137ef3f80e55f6438ae998b04734ace35.tar.gz
poi-d004673137ef3f80e55f6438ae998b04734ace35.zip
Refactor DocumentInputStream so that it can transparently handle both old style and new style POIFS Documents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053562 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/POIDocument.java')
-rw-r--r--src/java/org/apache/poi/POIDocument.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/POIDocument.java b/src/java/org/apache/poi/POIDocument.java
index 0bd6b1395c..6e1527e858 100644
--- a/src/java/org/apache/poi/POIDocument.java
+++ b/src/java/org/apache/poi/POIDocument.java
@@ -144,7 +144,7 @@ public abstract class POIDocument {
//directory can be null when creating new documents
if(directory == null) return null;
- InputStream dis;
+ DocumentInputStream dis;
try {
// Find the entry, and get an input stream for it
dis = directory.createDocumentInputStream( directory.getEntry(setName) );