|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.sl.usermodel.SlideShowFactory
public class SlideShowFactory
| Constructor Summary | |
|---|---|
SlideShowFactory()
|
|
| Method Summary | |
|---|---|
static SlideShow<?,?> |
create(java.io.File file)
Creates the appropriate HSLFSlideShow / XMLSlideShow from the given File, which must exist and be readable. |
static SlideShow<?,?> |
create(java.io.File file,
java.lang.String password)
Creates the appropriate HSLFSlideShow / XMLSlideShow from the given File, which must exist and be readable, and may be password protected |
static SlideShow<?,?> |
create(java.io.File file,
java.lang.String password,
boolean readOnly)
Creates the appropriate HSLFSlideShow / XMLSlideShow from the given File, which must exist and be readable, and may be password protected |
static SlideShow<?,?> |
create(java.io.InputStream inp)
Creates the appropriate HSLFSlideShow / XMLSlideShow from the given InputStream. |
static SlideShow<?,?> |
create(java.io.InputStream inp,
java.lang.String password)
Creates the appropriate HSLFSlideShow / XMLSlideShow from the given InputStream, which may be password protected. |
static SlideShow<?,?> |
create(NPOIFSFileSystem fs)
Creates a SlideShow from the given NPOIFSFileSystem. |
static SlideShow<?,?> |
create(NPOIFSFileSystem fs,
java.lang.String password)
Creates a SlideShow from the given NPOIFSFileSystem, which may be password protected |
protected static SlideShow<?,?> |
createHSLFSlideShow(java.lang.Object... args)
|
protected static SlideShow<?,?> |
createSlideShow(java.lang.String factoryClass,
java.lang.Object[] args)
|
protected static SlideShow<?,?> |
createXSLFSlideShow(java.lang.Object... args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SlideShowFactory()
| Method Detail |
|---|
public static SlideShow<?,?> create(NPOIFSFileSystem fs)
throws java.io.IOException
fs - The NPOIFSFileSystem to read the document from
java.io.IOException - if an error occurs while reading the data
public static SlideShow<?,?> create(NPOIFSFileSystem fs,
java.lang.String password)
throws java.io.IOException
fs - The NPOIFSFileSystem to read the document frompassword - The password that should be used or null if no password is necessary.
java.io.IOException - if an error occurs while reading the data
public static SlideShow<?,?> create(java.io.InputStream inp)
throws java.io.IOException,
EncryptedDocumentException
Note that using an InputStream has a higher memory footprint
than using a File.
Note that in order to properly release resources the
SlideShow should be closed after use. Note also that loading
from an InputStream requires more memory than loading
from a File, so prefer create(File) where possible.
inp - The InputStream to read data from.
java.io.IOException - if an error occurs while reading the data
EncryptedDocumentException - If the SlideShow given is password protected
public static SlideShow<?,?> create(java.io.InputStream inp,
java.lang.String password)
throws java.io.IOException,
EncryptedDocumentException
Note that using an InputStream has a higher memory footprint
than using a File.
Note that in order to properly release resources the
SlideShow should be closed after use. Note also that loading
from an InputStream requires more memory than loading
from a File, so prefer create(File) where possible.
inp - The InputStream to read data from.password - The password that should be used or null if no password is necessary.
java.io.IOException - if an error occurs while reading the data
EncryptedDocumentException - If the wrong password is given for a protected file
public static SlideShow<?,?> create(java.io.File file)
throws java.io.IOException,
EncryptedDocumentException
Note that in order to properly release resources the SlideShow should be closed after use.
file - The file to read data from.
java.io.IOException - if an error occurs while reading the data
EncryptedDocumentException - If the SlideShow given is password protected
public static SlideShow<?,?> create(java.io.File file,
java.lang.String password)
throws java.io.IOException,
EncryptedDocumentException
Note that in order to properly release resources the SlideShow should be closed after use.
file - The file to read data from.password - The password that should be used or null if no password is necessary.
java.io.IOException - if an error occurs while reading the data
EncryptedDocumentException - If the wrong password is given for a protected file
public static SlideShow<?,?> create(java.io.File file,
java.lang.String password,
boolean readOnly)
throws java.io.IOException,
EncryptedDocumentException
Note that in order to properly release resources the SlideShow should be closed after use.
file - The file to read data from.password - The password that should be used or null if no password is necessary.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 data
EncryptedDocumentException - If the wrong password is given for a protected file
protected static SlideShow<?,?> createHSLFSlideShow(java.lang.Object... args)
throws java.io.IOException,
EncryptedDocumentException
java.io.IOException
EncryptedDocumentException
protected static SlideShow<?,?> createXSLFSlideShow(java.lang.Object... args)
throws java.io.IOException,
EncryptedDocumentException
java.io.IOException
EncryptedDocumentException
protected static SlideShow<?,?> createSlideShow(java.lang.String factoryClass,
java.lang.Object[] args)
throws java.io.IOException,
EncryptedDocumentException
java.io.IOException
EncryptedDocumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||