Class XSLFSlideShowFactory

    • Constructor Detail

      • XSLFSlideShowFactory

        public XSLFSlideShowFactory()
    • Method Detail

      • create

        public XMLSlideShow create​(java.io.InputStream stream)
                            throws java.io.IOException
        Creates a XMLSlideShow from the given InputStream

        Note that in order to properly release resources the SlideShow should be closed after use.

        Specified by:
        create in interface SlideShowProvider<XSLFShape,​XSLFTextParagraph>
        Parameters:
        stream - The InputStream to read data from.
        Returns:
        The created SlideShow
        Throws:
        java.io.IOException - if an error occurs while reading the data
      • createSlideShow

        public static XMLSlideShow createSlideShow​(OPCPackage pkg)
                                            throws java.io.IOException
        Creates a XMLSlideShow from the given OOXML Package

        Note that in order to properly release resources the SlideShow should be closed after use.

        Parameters:
        pkg - The OPCPackage opened for reading data.
        Returns:
        The created SlideShow
        Throws:
        java.io.IOException - if an error occurs while reading the data
      • create

        public XMLSlideShow create​(java.io.File file,
                                   java.lang.String password,
                                   boolean readOnly)
                            throws java.io.IOException
        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:
        create in interface SlideShowProvider<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:
        java.io.IOException - if an error occurs while reading the data
        EncryptedDocumentException - If the wrong password is given for a protected file