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 |
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 local file 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_Rename_Namesake(InputStream fileStream,
LoadOptions loadOptions,
SaveOptions saveOptions)
Converts the content of the stream
|
<T> T |
convert_Rename_Namesake(InputStream fileStream,
SaveOptions saveOptions)
Deprecated.
|
<T> T |
convert_Rename_Namesake(InputStream fileStream,
String fileName,
LoadOptions loadOptions,
SaveOptions saveOptions)
Converts the content of the stream
|
<T> T |
convert_Rename_Namesake(InputStream fileStream,
String fileName,
SaveOptions saveOptions)
Converts the content of the stream
|
<T> T |
convert_Rename_Namesake(String guid,
LoadOptions loadOptions,
SaveOptions saveOptions)
Converts the file specified by the guid
|
<T> T |
convert_Rename_Namesake(String guid,
SaveOptions saveOptions)
Converts the file specified by the guid
|
com.groupdocs.conversion.handler.ConvertedDocument |
convert(InputStream fileStream,
LoadOptions loadOptions,
SaveOptions saveOptions)
Converts the content of the stream
|
com.groupdocs.conversion.handler.ConvertedDocument |
convert(InputStream fileStream,
SaveOptions saveOptions)
Converts the content of the stream
|
com.groupdocs.conversion.handler.ConvertedDocument |
convert(InputStream fileStream,
String fileName,
LoadOptions loadOptions,
SaveOptions saveOptions)
Converts the content of the stream
|
com.groupdocs.conversion.handler.ConvertedDocument |
convert(InputStream fileStream,
String fileName,
SaveOptions saveOptions)
Converts the content of the stream
|
com.groupdocs.conversion.handler.ConvertedDocument |
convert(String guid,
LoadOptions loadOptions,
SaveOptions saveOptions)
Converts the file specified by the guid
|
com.groupdocs.conversion.handler.ConvertedDocument |
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.handler.DocumentInfo |
getDocumentInfo(InputStream fileStream)
Returns information for provided document
|
com.groupdocs.conversion.handler.DocumentInfo |
getDocumentInfo(InputStream fileStream,
LoadOptions loadOptions)
Returns information for provided document
|
com.groupdocs.conversion.handler.DocumentInfo |
getDocumentInfo(String guid)
Returns information for provided document
|
com.groupdocs.conversion.handler.DocumentInfo |
getDocumentInfo(String guid,
LoadOptions loadOptions)
Returns information for provided document
|
com.groupdocs.conversion.domain.IDocumentLoader |
getDocumentLoader()
Document loader
|
int |
getDocumentPagesCount(InputStream fileStream)
Returns pages count of the provided document
|
int |
getDocumentPagesCount(InputStream fileStream,
LoadOptions loadOptions)
Returns pages count of the provided document
|
int |
getDocumentPagesCount(String guid)
Returns pages count of the provided document
|
int |
getDocumentPagesCount(String guid,
LoadOptions loadOptions)
Returns pages count of the provided document
|
String |
getDocumentType(InputStream stream)
Detects the document type from a stream
|
static com.groupdocs.foundation.handler.FoundationHandler |
getFoundationHandler()
Foundation handler
|
IOutputDataHandler |
getOutputDataHandler()
Output data handler
|
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,SaveOptions> |
getSaveOptions(InputStream sourceDocument)
Returns all possible SaveOptions for provided source document type
|
Dictionary<String,SaveOptions> |
getSaveOptions(String sourceDocumentExtension)
Returns all possible SaveOptions 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 local file system All cache items will be stored and
loaded from local data system
conversionConfig
- Instance of ConversionConfig
public ConversionHandler(ConversionConfig conversionConfig, IInputDataHandler inputDataHandler)
Instantiate the ConversionHandler with default
IOutputDataHandler
, ICacheDataHandler
and custom
IInputDataHandler
implementation
conversionConfig
- Instance of ConversionConfig
inputDataHandler
- Custom implementation of
IInputDataHandler
interfacepublic ConversionHandler(ConversionConfig conversionConfig, ICacheDataHandler cacheDataHandler)
Instantiate the ConversionHandler with default IInputDataHandler
,
IOutputDataHandler
and custom ICacheDataHandler
implementation
conversionConfig
- Instance of ConversionConfig
cacheDataHandler
- Custom implementation of
IInputDataHandler
interfacepublic ConversionHandler(ConversionConfig conversionConfig, IOutputDataHandler outputDataHandler)
Instantiate the ConversionHandler with default IInputDataHandler
,
ICacheDataHandler
and custom IOutputDataHandler
implementation
conversionConfig
- Instance of ConversionConfig
outputDataHandler
- 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 ConversionConfig
inputDataHandler
- 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 ConversionConfig
inputDataHandler
- 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 ConversionConfig
outputDataHandler
- 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 ConversionConfig
inputDataHandler
- 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_Rename_Namesake(String guid, LoadOptions loadOptions, SaveOptions saveOptions)
Converts the file specified by the guid
T
- guid
- loadOptions
- saveOptions
- public <T> T convert_Rename_Namesake(String guid, SaveOptions saveOptions)
Converts the file specified by the guid
T
- guid
- saveOptions
- public <T> T convert_Rename_Namesake(InputStream fileStream, String fileName, LoadOptions loadOptions, SaveOptions saveOptions)
Converts the content of the stream
T
- fileStream
- fileName
- loadOptions
- saveOptions
- public <T> T convert_Rename_Namesake(InputStream fileStream, String fileName, SaveOptions saveOptions)
Converts the content of the stream
T
- fileStream
- fileName
- saveOptions
- @Deprecated public <T> T convert_Rename_Namesake(InputStream fileStream, SaveOptions saveOptions)
Converts the content of the stream
fileStream
- saveOptions
-
T
:
public <T> T convert_Rename_Namesake(InputStream fileStream, LoadOptions loadOptions, SaveOptions saveOptions)
Converts the content of the stream
T
- fileStream
- loadOptions
- saveOptions
- public com.groupdocs.conversion.handler.ConvertedDocument convert(InputStream fileStream, String fileName, LoadOptions loadOptions, SaveOptions saveOptions)
Converts the content of the stream
fileStream
- fileName
- loadOptions
- saveOptions
- public com.groupdocs.conversion.handler.ConvertedDocument convert(InputStream fileStream, String fileName, SaveOptions saveOptions)
Converts the content of the stream
fileStream
- fileName
- saveOptions
- public com.groupdocs.conversion.handler.ConvertedDocument convert(InputStream fileStream, LoadOptions loadOptions, SaveOptions saveOptions)
Converts the content of the stream
fileStream
- loadOptions
- saveOptions
- public com.groupdocs.conversion.handler.ConvertedDocument convert(InputStream fileStream, SaveOptions saveOptions)
Converts the content of the stream
fileStream
- saveOptions
- public com.groupdocs.conversion.handler.ConvertedDocument convert(String guid, LoadOptions loadOptions, SaveOptions saveOptions)
Converts the file specified by the guid
guid
- loadOptions
- saveOptions
- public com.groupdocs.conversion.handler.ConvertedDocument convert(String guid, 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,SaveOptions> getSaveOptions(String sourceDocumentExtension)
Returns all possible SaveOptions for provided source document type
sourceDocumentExtension
- Source document extensionpublic Dictionary<String,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 getDocumentType(InputStream stream)
Detects the document type from a stream
stream
- public 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 int getDocumentPagesCount(String guid)
Returns pages count of the provided document
guid
- public int getDocumentPagesCount(String guid, LoadOptions loadOptions)
Returns pages count of the provided document
guid
- loadOptions
- public int getDocumentPagesCount(InputStream fileStream, LoadOptions loadOptions)
Returns pages count of the provided document
fileStream
- loadOptions
- public int getDocumentPagesCount(InputStream fileStream)
Returns pages count of the provided document
fileStream
- public com.groupdocs.conversion.handler.DocumentInfo getDocumentInfo(InputStream fileStream, LoadOptions loadOptions)
Returns information for provided document
fileStream
- loadOptions
- public com.groupdocs.conversion.handler.DocumentInfo getDocumentInfo(InputStream fileStream)
Returns information for provided document
fileStream
- public com.groupdocs.conversion.handler.DocumentInfo getDocumentInfo(String guid, LoadOptions loadOptions)
Returns information for provided document
guid
- loadOptions
- public com.groupdocs.conversion.handler.DocumentInfo getDocumentInfo(String guid)
Returns information for provided document
guid
- Copyright © 2017. All rights reserved.