@Internal public class XSLFSlideShowFactory extends java.lang.Object implements SlideShowProvider<XSLFShape,XSLFTextParagraph>
Constructor and Description |
---|
XSLFSlideShowFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(FileMagic fm) |
XMLSlideShow |
create()
Create a new empty SlideShow
|
XMLSlideShow |
create(DirectoryNode root,
java.lang.String password) |
XMLSlideShow |
create(java.io.File file,
java.lang.String password,
boolean readOnly)
Creates the XMLSlideShow from the given File, which must exist and be readable.
|
XMLSlideShow |
create(java.io.InputStream stream)
Creates a XMLSlideShow from the given InputStream
|
XMLSlideShow |
create(java.io.InputStream inp,
java.lang.String password) |
static XMLSlideShow |
createSlideShow(OPCPackage pkg)
Creates a XMLSlideShow from the given OOXML Package
|
public boolean accepts(FileMagic fm)
accepts
in interface SlideShowProvider<XSLFShape,XSLFTextParagraph>
public XMLSlideShow create()
create
in interface SlideShowProvider<XSLFShape,XSLFTextParagraph>
public XMLSlideShow create(DirectoryNode root, java.lang.String password) throws java.io.IOException
create
in interface SlideShowProvider<XSLFShape,XSLFTextParagraph>
java.io.IOException
public XMLSlideShow create(java.io.InputStream inp, java.lang.String password) throws java.io.IOException
create
in interface SlideShowProvider<XSLFShape,XSLFTextParagraph>
java.io.IOException
public XMLSlideShow create(java.io.InputStream stream) throws java.io.IOException
Note that in order to properly release resources the SlideShow should be closed after use.
create
in interface SlideShowProvider<XSLFShape,XSLFTextParagraph>
stream
- The InputStream
to read data from.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 XMLSlideShow create(java.io.File file, java.lang.String password, boolean readOnly) throws java.io.IOException
Note that in order to properly release resources the SlideShow should be closed after use.
create
in interface SlideShowProvider<XSLFShape,XSLFTextParagraph>
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 fileCopyright 2021 The Apache Software Foundation or its licensors, as applicable.