Package org.apache.poi.xslf.usermodel
Class XSLFSlideShowFactory
java.lang.Object
org.apache.poi.xslf.usermodel.XSLFSlideShowFactory
- All Implemented Interfaces:
SlideShowProvider<XSLFShape,XSLFTextParagraph>
@Internal
public class XSLFSlideShowFactory
extends Object
implements SlideShowProvider<XSLFShape,XSLFTextParagraph>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreate()Create a new empty SlideShowCreates the XMLSlideShow from the given File, which must exist and be readable.create(InputStream stream) Creates a XMLSlideShow from the given InputStreamcreate(InputStream inp, String password) create(DirectoryNode root, String password) static XMLSlideShowCreates a XMLSlideShow from the given OOXML Package
-
Constructor Details
-
XSLFSlideShowFactory
public XSLFSlideShowFactory()
-
-
Method Details
-
accepts
- Specified by:
acceptsin interfaceSlideShowProvider<XSLFShape,XSLFTextParagraph>
-
create
Create a new empty SlideShow- Specified by:
createin interfaceSlideShowProvider<XSLFShape,XSLFTextParagraph> - Returns:
- The created SlideShow
-
create
- Specified by:
createin interfaceSlideShowProvider<XSLFShape,XSLFTextParagraph> - Throws:
IOException
-
create
- Specified by:
createin interfaceSlideShowProvider<XSLFShape,XSLFTextParagraph> - Throws:
IOException
-
create
Creates a XMLSlideShow from the given InputStreamNote that in order to properly release resources the SlideShow should be closed after use.
- Specified by:
createin interfaceSlideShowProvider<XSLFShape,XSLFTextParagraph> - Parameters:
stream- TheInputStreamto read data from.- Returns:
- The created SlideShow
- Throws:
IOException- if an error occurs while reading the data
-
createSlideShow
Creates a XMLSlideShow from the given OOXML PackageNote that in order to properly release resources the SlideShow should be closed after use.
- Parameters:
pkg- TheOPCPackageopened for reading data.- Returns:
- The created SlideShow
- Throws:
IOException- if an error occurs while reading the data
-
create
Creates the XMLSlideShow from the given File, which must exist and be readable.Note that in order to properly release resources the SlideShow should be closed after use.
- Specified by:
createin interfaceSlideShowProvider<XSLFShape,XSLFTextParagraph> - Parameters:
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.- Returns:
- The created SlideShow
- Throws:
IOException- if an error occurs while reading the dataEncryptedDocumentException- If the wrong password is given for a protected file
-