public interface ConversionService
Modifier and Type | Method and Description |
---|---|
BlobHolder |
convert(String converterName,
BlobHolder blobHolder,
Map<String,Serializable> parameters)
Converts a Blob given a converter name.
|
BlobHolder |
convertToMimeType(String destinationMimeType,
BlobHolder blobHolder,
Map<String,Serializable> parameters)
Converts a Blob given a target destination MimeType.
|
String |
getConverterName(String sourceMimeType,
String destinationMimeType)
Gets the convertName given a source and destination MimeType.
|
List<String> |
getConverterNames(String sourceMimeType,
String destinationMimeType)
Gets the available convertNames given a source and destination MimeType.
|
List<String> |
getRegistredConverters()
Returns the names of the registered converters.
|
ConverterCheckResult |
isConverterAvailable(String converterName)
Checks for converter availability.
|
ConverterCheckResult |
isConverterAvailable(String converterName,
boolean refresh)
Checks for converter availability.
|
boolean |
isSourceMimeTypeSupported(String converterName,
String sourceMimeType)
Returns true if the converter supports the given
sourceMimeType , false otherwise. |
String getConverterName(String sourceMimeType, String destinationMimeType)
List<String> getConverterNames(String sourceMimeType, String destinationMimeType)
BlobHolder convert(String converterName, BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
ConversionException
BlobHolder convertToMimeType(String destinationMimeType, BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
ConversionException
List<String> getRegistredConverters()
ConverterCheckResult isConverterAvailable(String converterName, boolean refresh) throws ConverterNotRegistered
Result can be:
ConverterNotRegistered
if converter is not registered.
ConverterNotRegistered
ConverterCheckResult isConverterAvailable(String converterName) throws ConversionException
Result can be:
ConverterNotRegistered
if converter is not registered.
Result can be taken from an internal cache.
ConversionException
Copyright © 2015 Nuxeo SA. All rights reserved.