@Internal public class XSLFSlideShowFactory extends SlideShowFactory
SlideShowFactory.CreateSlideShow1<T>, SlideShowFactory.CreateSlideShow2<T,U>
createHslfByNode, createHslfByPoifs, createXslfByFile, createXslfByStream
Constructor and Description |
---|
XSLFSlideShowFactory() |
Modifier and Type | Method and Description |
---|---|
static XMLSlideShow |
create(OPCPackage pkg)
Creates a XMLSlideShow from the given OOXML Package.
|
static XMLSlideShow |
createSlideShow(java.io.File file,
boolean readOnly)
Creates the XMLSlideShow from the given File, which must exist and be readable.
|
static XMLSlideShow |
createSlideShow(java.io.InputStream stream)
Creates a XMLSlideShow from the given InputStream
|
static XMLSlideShow |
createSlideShow(OPCPackage pkg)
Creates a XMLSlideShow from the given OOXML Package
|
public static XMLSlideShow create(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 datapublic static XMLSlideShow 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 datapublic static XMLSlideShow createSlideShow(java.io.File file, boolean readOnly) throws java.io.IOException
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 dataEncryptedDocumentException
- If the wrong password is given for a protected filepublic static XMLSlideShow createSlideShow(java.io.InputStream stream) throws java.io.IOException
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 dataCopyright 2020 The Apache Software Foundation or its licensors, as applicable.