public class ConversionHandler extends Object
Create instance of ConversionHandler class to convert between different file formats
Modifier and Type | Field and Description |
---|---|
com.aspose.ms.lang.Event<ConversionCompleteHandler> |
ConversionComplete |
com.aspose.ms.lang.Event<ConversionProgressHandler> |
ConversionProgress |
com.aspose.ms.lang.Event<ConversionStartHandler> |
ConversionStart |
Constructor and Description |
---|
ConversionHandler(ConversionConfig conversionConfig)
Instantiate the ConversionHandler with default
IInputDataHandler , IOutputDataHandler and
ICacheDataHandler All files will be loaded from local file system
All cache items will be stored and loaded from local data system |
ConversionHandler(ConversionConfig conversionConfig,
IOutputDataHandler outputDataHandler,
ICacheDataHandler cacheDataHandler,
com.groupdocs.conversion.converter.IConverterFactory converterFactory,
com.groupdocs.conversion.domain.IDocumentLoader documentLoader) |
Modifier and Type | Method and Description |
---|---|
ConvertedDocument |
convert(InputStream fileStream,
com.groupdocs.conversion.options.load.LoadOptions loadOptions,
com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the content of the stream
|
ConvertedDocument |
convert(InputStream fileStream,
com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the content of the stream
|
ConvertedDocument |
convert(InputStream fileStream,
String fileName,
com.groupdocs.conversion.options.load.LoadOptions loadOptions,
com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the content of the stream
|
ConvertedDocument |
convert(InputStream fileStream,
String fileName,
com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the content of the stream
|
ConvertedDocument |
convert(String guid,
com.groupdocs.conversion.options.load.LoadOptions loadOptions,
com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the file specified by the guid
|
ConvertedDocument |
convert(String guid,
com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the file specified by the guid
|
ConversionConfig |
getConfig()
Conversion config
|
com.groupdocs.conversion.converter.IConverterFactory |
getConverterFactory()
Converter factory
|
DocumentInfo |
getDocumentInfo(InputStream fileStream)
Returns information for provided document
|
DocumentInfo |
getDocumentInfo(InputStream fileStream,
com.groupdocs.conversion.options.load.LoadOptions loadOptions)
Returns information for provided document
|
DocumentInfo |
getDocumentInfo(String guid)
Returns information for provided document
|
DocumentInfo |
getDocumentInfo(String guid,
com.groupdocs.conversion.options.load.LoadOptions loadOptions)
Returns information for provided document
|
com.groupdocs.conversion.domain.IDocumentLoader |
getDocumentLoader()
Document loader
|
com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,String[]> |
getPossibleConversions()
Return all possible conversions
|
String[] |
getPossibleConversions(InputStream sourceDocument)
Return all possible conversions for provided source document type
|
String[] |
getPossibleConversions(String sourceDocumentExtension)
Return all possible conversions for provided source document type
|
Dictionary<String,com.groupdocs.conversion.options.save.SaveOptions> |
getSaveOptions(InputStream sourceDocument)
Returns all possible SaveOptions for provided source document type
|
Dictionary<String,com.groupdocs.conversion.options.save.SaveOptions> |
getSaveOptions(String sourceDocumentExtension)
Returns all possible SaveOptions for provided source document type
|
boolean |
isLicensed()
Indicates is the product licensed or not
|
void |
setConfig(ConversionConfig value)
Conversion config
|
void |
setConversionProgressListener(IConversionProgressListener progressListener)
Set conversion progress listener
|
void |
setConversionStatusListener(IConversionStatusListener statusListener)
Set conversion status listener
|
void |
setConverterFactory(com.groupdocs.conversion.converter.IConverterFactory value)
Converter factory
|
void |
setDocumentLoader(com.groupdocs.conversion.domain.IDocumentLoader value)
Document loader
|
public final com.aspose.ms.lang.Event<ConversionStartHandler> ConversionStart
public final com.aspose.ms.lang.Event<ConversionProgressHandler> ConversionProgress
public final com.aspose.ms.lang.Event<ConversionCompleteHandler> ConversionComplete
public ConversionHandler(ConversionConfig conversionConfig)
Instantiate the ConversionHandler with default
IInputDataHandler
, IOutputDataHandler
and
ICacheDataHandler
All files will be loaded from local file system
All cache items will be stored and loaded from local data system
conversionConfig
- Instance of ConversionConfig
public ConversionHandler(ConversionConfig conversionConfig, IOutputDataHandler outputDataHandler, ICacheDataHandler cacheDataHandler, com.groupdocs.conversion.converter.IConverterFactory converterFactory, com.groupdocs.conversion.domain.IDocumentLoader documentLoader)
public ConversionConfig getConfig()
Conversion config
public void setConfig(ConversionConfig value)
Conversion config
value
- public com.groupdocs.conversion.domain.IDocumentLoader getDocumentLoader()
Document loader
public void setDocumentLoader(com.groupdocs.conversion.domain.IDocumentLoader value)
Document loader
value
- public com.groupdocs.conversion.converter.IConverterFactory getConverterFactory()
Converter factory
public void setConverterFactory(com.groupdocs.conversion.converter.IConverterFactory value)
Converter factory
value
- public ConvertedDocument convert(InputStream fileStream, String fileName, com.groupdocs.conversion.options.load.LoadOptions loadOptions, com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the content of the stream
fileStream
- fileName
- loadOptions
- saveOptions
- public ConvertedDocument convert(InputStream fileStream, String fileName, com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the content of the stream
fileStream
- fileName
- saveOptions
- public ConvertedDocument convert(InputStream fileStream, com.groupdocs.conversion.options.load.LoadOptions loadOptions, com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the content of the stream
fileStream
- loadOptions
- saveOptions
- public ConvertedDocument convert(InputStream fileStream, com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the content of the stream
fileStream
- saveOptions
- public ConvertedDocument convert(String guid, com.groupdocs.conversion.options.load.LoadOptions loadOptions, com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the file specified by the guid
guid
- loadOptions
- saveOptions
- public ConvertedDocument convert(String guid, com.groupdocs.conversion.options.save.SaveOptions saveOptions)
Converts the file specified by the guid
guid
- saveOptions
- public void setConversionProgressListener(IConversionProgressListener progressListener)
Set conversion progress listener
progressListener
- public void setConversionStatusListener(IConversionStatusListener statusListener)
Set conversion status listener
statusListener
- public Dictionary<String,com.groupdocs.conversion.options.save.SaveOptions> getSaveOptions(String sourceDocumentExtension)
Returns all possible SaveOptions for provided source document type
sourceDocumentExtension
- Source document extensionpublic Dictionary<String,com.groupdocs.conversion.options.save.SaveOptions> getSaveOptions(InputStream sourceDocument)
Returns all possible SaveOptions for provided source document type
sourceDocument
- Source document streampublic com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,String[]> getPossibleConversions()
Return all possible conversions
public String[] getPossibleConversions(String sourceDocumentExtension)
Return all possible conversions for provided source document type
sourceDocumentExtension
- Source document extensionpublic String[] getPossibleConversions(InputStream sourceDocument)
Return all possible conversions for provided source document type
sourceDocument
- Source document streampublic boolean isLicensed()
Indicates is the product licensed or not
public DocumentInfo getDocumentInfo(InputStream fileStream, com.groupdocs.conversion.options.load.LoadOptions loadOptions)
Returns information for provided document
fileStream
- loadOptions
- public DocumentInfo getDocumentInfo(InputStream fileStream)
Returns information for provided document
fileStream
- public DocumentInfo getDocumentInfo(String guid, com.groupdocs.conversion.options.load.LoadOptions loadOptions)
Returns information for provided document
guid
- loadOptions
- public DocumentInfo getDocumentInfo(String guid)
Returns information for provided document
guid
- Copyright © 2019. All rights reserved.