diff options
author | Nick Burch <nick@apache.org> | 2015-05-11 19:00:12 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2015-05-11 19:00:12 +0000 |
commit | 14ca466474ace02350c13ff08088e35b48d31fc8 (patch) | |
tree | acaf29bc8ecadd3bbbbf678549d855542137c0b3 /src/scratchpad | |
parent | 5abd6431a28c8c8ff27f3a80d989deb41d77ea32 (diff) | |
download | poi-14ca466474ace02350c13ff08088e35b48d31fc8.tar.gz poi-14ca466474ace02350c13ff08088e35b48d31fc8.zip |
#56791 More updates from OPOIFS to NPOIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678802 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad')
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java b/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java index f5ac0c3b16..c2a5248e7c 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java +++ b/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java @@ -19,7 +19,7 @@ package org.apache.poi.hslf; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; -import java.io.FileInputStream; +import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -87,23 +87,15 @@ public final class HSLFSlideShow extends POIDocument { private ObjectData[] _objects; /** - * Returns the underlying POIFSFileSystem for the document - * that is open. - */ - protected POIFSFileSystem getPOIFSFileSystem() { - return directory.getFileSystem(); - } - - /** - * Returns the directory in the underlying POIFSFileSystem for the - * document that is open. - */ - protected DirectoryNode getPOIFSDirectory() { - return directory; - } + * Returns the directory in the underlying POIFSFileSystem for the + * document that is open. + */ + protected DirectoryNode getPOIFSDirectory() { + return directory; + } /** - * Constructs a Powerpoint document from fileName. Parses the document + * Constructs a PowerPoint document from fileName. Parses the document * and places all the important stuff into data structures. * * @param fileName The name of the file to read. @@ -111,7 +103,7 @@ public final class HSLFSlideShow extends POIDocument { */ public HSLFSlideShow(String fileName) throws IOException { - this(new FileInputStream(fileName)); + this(new NPOIFSFileSystem(new File(fileName))); } /** |