Package org.apache.poi.hslf.usermodel
Class HSLFSlideShowFactory
- java.lang.Object
-
- org.apache.poi.hslf.usermodel.HSLFSlideShowFactory
-
- All Implemented Interfaces:
SlideShowProvider<HSLFShape,HSLFTextParagraph>
@Internal public class HSLFSlideShowFactory extends Object implements SlideShowProvider<HSLFShape,HSLFTextParagraph>
Helper class which is instantiated by reflection fromSlideShowFactory.create(java.io.File)and similar
-
-
Constructor Summary
Constructors Constructor Description HSLFSlideShowFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(FileMagic fm)HSLFSlideShowcreate()Create a new empty SlideShowHSLFSlideShowcreate(File file, String password, boolean readOnly)HSLFSlideShowcreate(InputStream inp)HSLFSlideShowcreate(InputStream inp, String password)HSLFSlideShowcreate(DirectoryNode root, String password)Creates a HSLFSlideShow from the given DirectoryNodestatic HSLFSlideShowcreateSlideShow(POIFSFileSystem fs)Creates a HSLFSlideShow from the givenPOIFSFileSystem
-
-
-
Method Detail
-
accepts
public boolean accepts(FileMagic fm)
- Specified by:
acceptsin interfaceSlideShowProvider<HSLFShape,HSLFTextParagraph>
-
create
public HSLFSlideShow create()
Create a new empty SlideShow- Specified by:
createin interfaceSlideShowProvider<HSLFShape,HSLFTextParagraph>- Returns:
- The created SlideShow
-
createSlideShow
public static HSLFSlideShow createSlideShow(POIFSFileSystem fs) throws IOException
Creates a HSLFSlideShow from the givenPOIFSFileSystemNote that in order to properly release resources the SlideShow should be closed after use.
- Throws:
IOException
-
create
public HSLFSlideShow create(DirectoryNode root, String password) throws IOException
Creates a HSLFSlideShow from the given DirectoryNodeNote that in order to properly release resources the SlideShow should be closed after use.
- Specified by:
createin interfaceSlideShowProvider<HSLFShape,HSLFTextParagraph>- Throws:
IOException
-
create
public HSLFSlideShow create(InputStream inp) throws IOException
- Specified by:
createin interfaceSlideShowProvider<HSLFShape,HSLFTextParagraph>- Throws:
IOException
-
create
public HSLFSlideShow create(InputStream inp, String password) throws IOException
- Specified by:
createin interfaceSlideShowProvider<HSLFShape,HSLFTextParagraph>- Throws:
IOException
-
create
public HSLFSlideShow create(File file, String password, boolean readOnly) throws IOException
- Specified by:
createin interfaceSlideShowProvider<HSLFShape,HSLFTextParagraph>- Throws:
IOException
-
-