public class PresentationFactory extends java.lang.Object implements IPresentationFactory
Allows to create presentation via COM interface
Constructor and Description |
---|
PresentationFactory() |
Modifier and Type | Method and Description |
---|---|
IPresentation |
createPresentation()
Creates new presentation.
|
IPresentation |
createPresentation(ILoadOptions options)
Creates new presentation with additional load options
|
static PresentationFactory |
getInstance()
Presentation factory static instance.
|
IPresentationInfo |
getPresentationInfo(java.io.InputStream stream)
Creates new PresentationInfo object from stream and binds presentation to it.
|
IPresentationInfo |
getPresentationInfo(java.lang.String file)
Creates new PresentationInfo object from file and binds presentation to it.
|
IPresentationText |
getPresentationText(java.io.InputStream stream,
int mode)
Retreieves the raw text from the slides
|
IPresentationText |
getPresentationText(java.io.InputStream stream,
int mode,
ILoadOptions options)
Retreieves the raw text from the slides
|
IPresentationText |
getPresentationText(java.lang.String file,
int mode)
Retreieves the raw text from the slides
|
IPresentation |
readPresentation(byte[] data)
Reads an existing presentation from array
|
IPresentation |
readPresentation(byte[] data,
ILoadOptions options)
Reads an existing presentation from array with additional load options
|
IPresentation |
readPresentation(java.io.InputStream stream)
Reads an existing presentation from stream
|
IPresentation |
readPresentation(java.io.InputStream stream,
ILoadOptions options)
Reads an existing presentation from stream with additional load options
|
IPresentation |
readPresentation(java.lang.String file)
Reads an existing presentation from file
|
IPresentation |
readPresentation(java.lang.String file,
ILoadOptions options)
Reads an existing presentation from stream with additional load options
|
public static PresentationFactory getInstance()
Presentation factory static instance.
Read-only PresentationFactory
.
public final IPresentation createPresentation()
Creates new presentation.
createPresentation
in interface IPresentationFactory
public final IPresentation createPresentation(ILoadOptions options)
Creates new presentation with additional load options
createPresentation
in interface IPresentationFactory
options
- Load optionspublic final IPresentationInfo getPresentationInfo(java.lang.String file)
Creates new PresentationInfo object from file and binds presentation to it.
getPresentationInfo
in interface IPresentationFactory
file
- Presentation file.public final IPresentationInfo getPresentationInfo(java.io.InputStream stream)
Creates new PresentationInfo object from stream and binds presentation to it. Gets info about presentation in specified stream.
getPresentationInfo
in interface IPresentationFactory
stream
- Presentation stream.public final IPresentation readPresentation(byte[] data)
Reads an existing presentation from array
readPresentation
in interface IPresentationFactory
data
- Array to readpublic final IPresentation readPresentation(byte[] data, ILoadOptions options)
Reads an existing presentation from array with additional load options
readPresentation
in interface IPresentationFactory
data
- Array to readoptions
- Load optionspublic final IPresentation readPresentation(java.io.InputStream stream)
Reads an existing presentation from stream
readPresentation
in interface IPresentationFactory
stream
- Input stream to readpublic final IPresentation readPresentation(java.io.InputStream stream, ILoadOptions options)
Reads an existing presentation from stream with additional load options
readPresentation
in interface IPresentationFactory
stream
- Input stream to readoptions
- Load optionspublic final IPresentation readPresentation(java.lang.String file)
Reads an existing presentation from file
readPresentation
in interface IPresentationFactory
file
- File namepublic final IPresentation readPresentation(java.lang.String file, ILoadOptions options)
Reads an existing presentation from stream with additional load options
readPresentation
in interface IPresentationFactory
file
- File nameoptions
- Load optionspublic final IPresentationText getPresentationText(java.lang.String file, int mode)
Retreieves the raw text from the slides
getPresentationText
in interface IPresentationFactory
file
- Input filemode
- Extraction modepublic final IPresentationText getPresentationText(java.io.InputStream stream, int mode)
Retreieves the raw text from the slides
getPresentationText
in interface IPresentationFactory
stream
- Input streammode
- Extraction modepublic final IPresentationText getPresentationText(java.io.InputStream stream, int mode, ILoadOptions options)
Retreieves the raw text from the slides
getPresentationText
in interface IPresentationFactory
stream
- Input streammode
- Extraction modeoptions
- Load options