public class MimeTypeTranslationHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<ConvertOption>> |
dstMappings |
protected org.apache.commons.logging.Log |
log |
protected Map<String,List<ConvertOption>> |
srcMappings |
Constructor and Description |
---|
MimeTypeTranslationHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addConverter(ConverterDescriptor desc) |
void |
clear() |
String |
getConverterName(String sourceMimeType,
String destMimeType) |
List<String> |
getConverterNames(String sourceMimeType,
String destMimeType) |
List<String> |
getDestinationMimeTypes(String sourceMimeType) |
List<String> |
getSourceMimeTypes(String destinationMimeType) |
protected final org.apache.commons.logging.Log log
protected final Map<String,List<ConvertOption>> srcMappings
protected final Map<String,List<ConvertOption>> dstMappings
public MimeTypeTranslationHelper()
public void addConverter(ConverterDescriptor desc)
public String getConverterName(String sourceMimeType, String destMimeType)
public List<String> getConverterNames(String sourceMimeType, String destMimeType)
public List<String> getDestinationMimeTypes(String sourceMimeType)
public List<String> getSourceMimeTypes(String destinationMimeType)
public void clear()
Copyright © 2017 Nuxeo. All rights reserved.