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)
           Gets info about presentation in specified 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)
           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
 
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. Read-only PresentationFactory.


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)

Gets info about presentation in specified stream.

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

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)

Reads an existing presentation from stream

Specified by:
readPresentation in interface IPresentationFactory
Parameters:
stream - Input stream to read
Returns:
Read presentation

readPresentation

public IPresentation readPresentation(java.io.InputStream stream,
                                      ILoadOptions options)

Reads an existing presentation from stream with additional load options

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

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


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.