public class ConversionHandler extends Object
Create instanse 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 |
com.groupdocs.conversion.handler.LocaleHandler |
LocaleHandler
Locale handler
|
| Constructor and Description |
|---|
ConversionHandler(ConversionConfig conversionConfig)
Instantiate the ConversionHandler with default
IInputDataHandler,
IOutputDataHandler and ICacheDataHandler All files will
be loaded from localfile system All cache items will be stored and loaded
from local data system |
ConversionHandler(ConversionConfig conversionConfig,
ICacheDataHandler cacheDataHandler)
Instantiate the ConversionHandler with default
IInputDataHandler,
IOutputDataHandler and custom ICacheDataHandler
implementation |
ConversionHandler(ConversionConfig conversionConfig,
IInputDataHandler inputDataHandler)
Instantiate the ConversionHandler with default
IOutputDataHandler, ICacheDataHandler and custom
IInputDataHandler implementation |
ConversionHandler(ConversionConfig conversionConfig,
IInputDataHandler inputDataHandler,
ICacheDataHandler cacheDataHandler)
Instantiate the ConversionHandler with default
IOutputDataHandler
and custom IInputDataHandler, ICacheDataHandler
implementation |
ConversionHandler(ConversionConfig conversionConfig,
IInputDataHandler inputDataHandler,
IOutputDataHandler outputDataHandler)
Instantiate the ConversionHandler with default
ICacheDataHandler
and custom IInputDataHandler, IOutputDataHandler
implementation |
ConversionHandler(ConversionConfig conversionConfig,
IInputDataHandler inputDataHandler,
IOutputDataHandler outputDataHandler,
ICacheDataHandler cacheDataHandler)
Instantiate the ConversionHandler with custom
IInputDataHandler,
IOutputDataHandler and custom ICacheDataHandler
implementations |
ConversionHandler(ConversionConfig conversionConfig,
IOutputDataHandler outputDataHandler)
Instantiate the ConversionHandler with default
IInputDataHandler,
ICacheDataHandler and custom IOutputDataHandler
implementation |
ConversionHandler(ConversionConfig conversionConfig,
IOutputDataHandler outputDataHandler,
ICacheDataHandler cacheDataHandler)
Instantiate the ConversionHandler with default
IInputDataHandler
and custom IOutputDataHandler, ICacheDataHandler
implementation |
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 |
|---|---|
<T> T |
convert(InputStream fileStream,
LoadOptions loadOptions,
SaveOptions saveOptions)
Converts the content of the stream
|
<T> T |
convert(InputStream fileStream,
SaveOptions saveOptions)
Converts the content of the stream
|
<T> T |
convert(InputStream fileStream,
String fileName,
LoadOptions loadOptions,
SaveOptions saveOptions)
Converts the content of the stream
|
<T> T |
convert(InputStream fileStream,
String fileName,
SaveOptions saveOptions)
Converts the content of the stream
|
<T> T |
convert(String guid,
LoadOptions loadOptions,
SaveOptions saveOptions)
Converts the file specified by the guid
|
<T> T |
convert(String guid,
SaveOptions saveOptions)
Converts the file specified by the guid
|
ICacheDataHandler |
getCacheDataHandler()
Cache data handler
|
ConversionConfig |
getConfig()
Conversion config
|
com.groupdocs.conversion.converter.IConverterFactory |
getConverterFactory()
Converter factory
|
com.groupdocs.conversion.domain.IDocumentLoader |
getDocumentLoader()
Document loader
|
static com.groupdocs.foundation.handler.FoundationHandler |
getFoundationHandler()
Foundation handler
|
IOutputDataHandler |
getOutputDataHandler()
Output data handler
|
Dictionary<String,SaveOptions> |
getSaveOptions(InputStream sourceDocument)
Return all possible conversions for provided source document type
|
Dictionary<String,SaveOptions> |
getSaveOptions(String sourceDocumentExtension)
Return all possible conversions for provided source document type
|
boolean |
isLicensed()
Indicates is the product licensed or not
|
void |
setConversionProgressListener(IConversionProgressListener progressListener)
Set conversion progress listener
|
void |
setConversionStatusListener(IConversionStatusListener statusListener)
Set conversion status listener
|
public com.groupdocs.conversion.handler.LocaleHandler LocaleHandler
Locale handler
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 localfile system All cache items will be stored and loaded
from local data system
conversionConfig - Instance of ConversionConfigpublic ConversionHandler(ConversionConfig conversionConfig, IInputDataHandler inputDataHandler)
Instantiate the ConversionHandler with default
IOutputDataHandler, ICacheDataHandler and custom
IInputDataHandler implementation
conversionConfig - Instance of ConversionConfiginputDataHandler - Custom implementation of
IInputDataHandler interfacepublic ConversionHandler(ConversionConfig conversionConfig, ICacheDataHandler cacheDataHandler)
Instantiate the ConversionHandler with default IInputDataHandler,
IOutputDataHandler and custom ICacheDataHandler
implementation
conversionConfig - Instance of ConversionConfigcacheDataHandler - Custom implementation of
IInputDataHandler interfacepublic ConversionHandler(ConversionConfig conversionConfig, IOutputDataHandler outputDataHandler)
Instantiate the ConversionHandler with default IInputDataHandler,
ICacheDataHandler and custom IOutputDataHandler
implementation
conversionConfig - Instance of ConversionConfigoutputDataHandler - Custom implementation of
IOutputDataHandler interfacepublic ConversionHandler(ConversionConfig conversionConfig, IInputDataHandler inputDataHandler, IOutputDataHandler outputDataHandler)
Instantiate the ConversionHandler with default ICacheDataHandler
and custom IInputDataHandler, IOutputDataHandler
implementation
conversionConfig - Instance of ConversionConfiginputDataHandler - Custom implementation of
IInputDataHandler interfaceoutputDataHandler - Custom implementation of
IOutputDataHandler interfacepublic ConversionHandler(ConversionConfig conversionConfig, IInputDataHandler inputDataHandler, ICacheDataHandler cacheDataHandler)
Instantiate the ConversionHandler with default IOutputDataHandler
and custom IInputDataHandler, ICacheDataHandler
implementation
conversionConfig - Instance of ConversionConfiginputDataHandler - Custom implementation of
IInputDataHandler interfacecacheDataHandler - Custom implementation of
ICacheDataHandler interfacepublic ConversionHandler(ConversionConfig conversionConfig, IOutputDataHandler outputDataHandler, ICacheDataHandler cacheDataHandler)
Instantiate the ConversionHandler with default IInputDataHandler
and custom IOutputDataHandler, ICacheDataHandler
implementation
conversionConfig - Instance of ConversionConfigoutputDataHandler - Custom implementation of
IOutputDataHandler interfacecacheDataHandler - Custom implementation of
ICacheDataHandler interfacepublic ConversionHandler(ConversionConfig conversionConfig, IInputDataHandler inputDataHandler, IOutputDataHandler outputDataHandler, ICacheDataHandler cacheDataHandler)
Instantiate the ConversionHandler with custom IInputDataHandler,
IOutputDataHandler and custom ICacheDataHandler
implementations
conversionConfig - Instance of ConversionConfiginputDataHandler - Custom implementation of
IInputDataHandler interfaceoutputDataHandler - Custom implementation of
IOutputDataHandler interfacecacheDataHandler - Custom implementation of
ICacheDataHandler interfacepublic 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 com.groupdocs.conversion.domain.IDocumentLoader getDocumentLoader()
Document loader
public IOutputDataHandler getOutputDataHandler()
Output data handler
public ICacheDataHandler getCacheDataHandler()
Cache data handler
public static com.groupdocs.foundation.handler.FoundationHandler getFoundationHandler()
Foundation handler
public com.groupdocs.conversion.converter.IConverterFactory getConverterFactory()
Converter factory
public <T> T convert(String guid, LoadOptions loadOptions, SaveOptions saveOptions)
Converts the file specified by the guid
T - guid - loadOptions - saveOptions - public <T> T convert(String guid, SaveOptions saveOptions)
Converts the file specified by the guid
T - guid - saveOptions - public <T> T convert(InputStream fileStream, String fileName, LoadOptions loadOptions, SaveOptions saveOptions)
Converts the content of the stream
T - fileStream - fileName - loadOptions - saveOptions - public <T> T convert(InputStream fileStream, String fileName, SaveOptions saveOptions)
Converts the content of the stream
T - fileStream - fileName - saveOptions - public <T> T convert(InputStream fileStream, LoadOptions loadOptions, SaveOptions saveOptions)
Converts the content of the stream
T - fileStream - loadOptions - saveOptions - public <T> T convert(InputStream fileStream, SaveOptions saveOptions)
Converts the content of the stream
T - fileStream - saveOptions -
T:
public void setConversionProgressListener(IConversionProgressListener progressListener)
Set conversion progress listener
progressListener - public void setConversionStatusListener(IConversionStatusListener statusListener)
Set conversion status listener
statusListener - public Dictionary<String,SaveOptions> getSaveOptions(String sourceDocumentExtension)
Return all possible conversions for provided source document type
sourceDocumentExtension - Source document extensionpublic Dictionary<String,SaveOptions> getSaveOptions(InputStream sourceDocument)
Return all possible conversions for provided source document type
sourceDocument - Source document streampublic boolean isLicensed()
Indicates is the product licensed or not
Copyright © 2017. All rights reserved.