#56791 More updates from OPOIFS to NPOIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678802 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dd8fc66a0c
commit
c9c4aee324
@ -19,7 +19,7 @@ package org.apache.poi.hslf;
|
|||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.FileInputStream;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
@ -86,14 +86,6 @@ public final class HSLFSlideShow extends POIDocument {
|
|||||||
// Embedded objects stored in storage records in the document stream, lazily populated.
|
// Embedded objects stored in storage records in the document stream, lazily populated.
|
||||||
private ObjectData[] _objects;
|
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
|
* Returns the directory in the underlying POIFSFileSystem for the
|
||||||
* document that is open.
|
* document that is open.
|
||||||
@ -103,7 +95,7 @@ public final class HSLFSlideShow extends POIDocument {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
* and places all the important stuff into data structures.
|
||||||
*
|
*
|
||||||
* @param fileName The name of the file to read.
|
* @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
|
public HSLFSlideShow(String fileName) throws IOException
|
||||||
{
|
{
|
||||||
this(new FileInputStream(fileName));
|
this(new NPOIFSFileSystem(new File(fileName)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user