|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.sl.usermodel.SlideShowFactory
org.apache.poi.xslf.usermodel.XSLFSlideShowFactory
@Internal public class XSLFSlideShowFactory
Constructor Summary | |
---|---|
XSLFSlideShowFactory()
|
Method Summary | |
---|---|
static SlideShow<?,?> |
createSlideShow(java.io.File file,
boolean readOnly)
Creates the XMLSlideShow from the given File, which must exist and be readable. |
static SlideShow<?,?> |
createSlideShow(java.io.InputStream stream)
Creates a XMLSlideShow from the given InputStream |
static SlideShow<?,?> |
createSlideShow(OPCPackage pkg)
Creates a XMLSlideShow from the given OOXML Package |
Methods inherited from class org.apache.poi.sl.usermodel.SlideShowFactory |
---|
create, create, create, create, create, create, create, createHSLFSlideShow, createSlideShow, createXSLFSlideShow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSLFSlideShowFactory()
Method Detail |
---|
public static SlideShow<?,?> createSlideShow(OPCPackage pkg) throws java.io.IOException
Note that in order to properly release resources the SlideShow should be closed after use.
pkg
- The OPCPackage
opened for reading data.
java.io.IOException
- if an error occurs while reading the data
InvalidFormatException
public static SlideShow<?,?> createSlideShow(java.io.File file, boolean readOnly) throws java.io.IOException, InvalidFormatException
Note that in order to properly release resources theSlideShow should be closed after use.
file
- The file to read data from.readOnly
- If the SlideShow should be opened in read-only mode to avoid writing back
changes when the document is closed.
java.io.IOException
- if an error occurs while reading the data
EncryptedDocumentException
- If the wrong password is given for a protected file
InvalidFormatException
public static SlideShow<?,?> createSlideShow(java.io.InputStream stream) throws java.io.IOException, InvalidFormatException
Note that in order to properly release resources the SlideShow should be closed after use.
stream
- The InputStream
to read data from.
java.io.IOException
- if an error occurs while reading the data
InvalidFormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |