public class DefaultConversionManager extends Object implements IConversionManager
IConversionManager.| Constructor and Description |
|---|
DefaultConversionManager(File baseFolder,
long processTimeout,
TimeUnit timeUnit,
Map<Class<? extends IExternalConverter>,Boolean> externalConverterRegistration) |
| Modifier and Type | Method and Description |
|---|---|
Map<DocumentType,Set<DocumentType>> |
getSupportedConversions()
Returns a mapping of all conversions that are supported by the backing conversion engine.
|
boolean |
isOperational()
Checks if all converter back-ends that are represented by this conversion manager are operational.
|
void |
shutDown()
Shuts down all converter back-ends that are represented by this conversion manager.
|
Future<Boolean> |
startConversion(File source,
DocumentType sourceFormat,
File target,
DocumentType targetFormat)
Schedules a conversion from an input file to be converted into the target format.
|
public Future<Boolean> startConversion(File source, DocumentType sourceFormat, File target, DocumentType targetFormat)
IConversionManagerstartConversion in interface IConversionManagersource - The source file which is to be converted.sourceFormat - The file format of the source file.target - The target file to which the converted file should be saved.targetFormat - The file format of the target file.boolean represents the
conversion's success.public Map<DocumentType,Set<DocumentType>> getSupportedConversions()
IConversionManagergetSupportedConversions in interface IConversionManagerpublic boolean isOperational()
IConversionManagerisOperational in interface IConversionManagertrue if the all represented converters are operational.public void shutDown()
IConversionManagershutDown in interface IConversionManagerCopyright © 2013–2016. All rights reserved.