com.aspose.slides
Class PresentationFactory

java.lang.Object
  extended by com.aspose.slides.PresentationFactory
All Implemented Interfaces:
IPresentationFactory

public class PresentationFactory
extends java.lang.Object
implements IPresentationFactory

Allows to create presentation via COM interface


Constructor Summary
PresentationFactory()
           
 
Method Summary
 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)
           
 IPresentationInfo getPresentationInfo(java.lang.String file)
           Gets info about presentation in specified file.
 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)
           
 IPresentation readPresentation(java.io.InputStream stream, ILoadOptions 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresentationFactory

public PresentationFactory()
Method Detail

getInstance

public static PresentationFactory getInstance()

Presentation factory static instance.


createPresentation

public IPresentation createPresentation()

Creates new presentation.

Specified by:
createPresentation in interface IPresentationFactory
Returns:
New presentation

createPresentation

public IPresentation createPresentation(ILoadOptions options)

Creates new presentation with additional load options

Specified by:
createPresentation in interface IPresentationFactory
Parameters:
options - Load options
Returns:
New presentation

getPresentationInfo

public IPresentationInfo getPresentationInfo(java.lang.String file)

Gets info about presentation in specified file.

Specified by:
getPresentationInfo in interface IPresentationFactory
Parameters:
file - Presentatoin file.
Returns:
Presentation info

getPresentationInfo

public IPresentationInfo getPresentationInfo(java.io.InputStream stream)
Specified by:
getPresentationInfo in interface IPresentationFactory

readPresentation

public IPresentation readPresentation(byte[] data)

Reads an existing presentation from array

Specified by:
readPresentation in interface IPresentationFactory
Parameters:
data - Array to read
Returns:
Read presentation

readPresentation

public IPresentation readPresentation(byte[] data,
                                      ILoadOptions options)

Reads an existing presentation from array with additional load options

Specified by:
readPresentation in interface IPresentationFactory
Parameters:
data - Array to read
options - Load options
Returns:
Read presentation

readPresentation

public IPresentation readPresentation(java.io.InputStream stream)
Specified by:
readPresentation in interface IPresentationFactory

readPresentation

public IPresentation readPresentation(java.io.InputStream stream,
                                      ILoadOptions options)
Specified by:
readPresentation in interface IPresentationFactory

readPresentation

public IPresentation readPresentation(java.lang.String file)

Reads an existing presentation from file

Specified by:
readPresentation in interface IPresentationFactory
Parameters:
file - File name
Returns:
Read presentation

readPresentation

public IPresentation readPresentation(java.lang.String file,
                                      ILoadOptions options)

Reads an existing presentation from stream with additional load options

Specified by:
readPresentation in interface IPresentationFactory
Parameters:
file - File name
options - Load options
Returns:
Read presentation