You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2015/05/11 21:00:12 UTC
svn commit: r1678802 -
/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java
Author: nick
Date: Mon May 11 19:00:12 2015
New Revision: 1678802
URL: http://svn.apache.org/r1678802
Log:
#56791 More updates from OPOIFS to NPOIFS
Modified:
poi/trunk/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java
Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java?rev=1678802&r1=1678801&r2=1678802&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hslf/HSLFSlideShow.java Mon May 11 19:00:12 2015
@@ -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
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
*/
public HSLFSlideShow(String fileName) throws IOException
{
- this(new FileInputStream(fileName));
+ this(new NPOIFSFileSystem(new File(fileName)));
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org