public class AnyToThumbnailConverter extends Object implements Converter
Modifier and Type | Field and Description |
---|---|
static String |
ANY_TO_PDF_CONVERTER_NAME |
static String |
PDF_MIME_TYPE |
static Pattern |
PDF_MIME_TYPE_PATTERN |
Constructor and Description |
---|
AnyToThumbnailConverter() |
Modifier and Type | Method and Description |
---|---|
BlobHolder |
convert(BlobHolder blobHolder,
Map<String,Serializable> parameters)
Main method to handle the real Conversion Job.
|
void |
init(ConverterDescriptor descriptor)
Initializes the Converter.
|
public static final String PDF_MIME_TYPE
public static final Pattern PDF_MIME_TYPE_PATTERN
public static final String ANY_TO_PDF_CONVERTER_NAME
public AnyToThumbnailConverter()
public void init(ConverterDescriptor descriptor)
Converter
This can be used to retrieve some configuration information from the XMap Descriptor.
public BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
Converter
Returned BlobHolder
must implement CachableBlobHolder
, otherwise result won't be cached.
convert
in interface Converter
ConversionException
Copyright © 2018 Nuxeo. All rights reserved.