Class UTF8CharsetConverter
- java.lang.Object
-
- org.nuxeo.ecm.platform.convert.plugins.UTF8CharsetConverter
-
-
Constructor Summary
Constructors Constructor Description UTF8CharsetConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Blob
convert(Blob blob)
BlobHolder
convert(BlobHolder blobHolder, Map<String,Serializable> parameters)
Main method to handle the real Conversion Job.protected String
detectEncoding(InputStream in)
Deprecated.since 11.1.protected String
detectEncoding(Blob blob)
void
init(ConverterDescriptor descriptor)
Initializes the Converter.
-
-
-
Method Detail
-
init
public void init(ConverterDescriptor descriptor)
Description copied from interface:Converter
Initializes the Converter.This can be used to retrieve some configuration information from the XMap Descriptor.
-
convert
public BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
Description copied from interface:Converter
Main method to handle the real Conversion Job.Returned
BlobHolder
must implementCachableBlobHolder
, otherwise result won't be cached.- Specified by:
convert
in interfaceConverter
- Throws:
ConversionException
-
convert
protected Blob convert(Blob blob) throws IOException, ConversionException
- Throws:
IOException
ConversionException
-
detectEncoding
@Deprecated protected String detectEncoding(InputStream in) throws IOException, ConversionException
Deprecated.since 11.1. UsedetectEncoding(Blob)
instead.- Throws:
IOException
ConversionException
-
detectEncoding
protected String detectEncoding(Blob blob) throws IOException, ConversionException
- Throws:
IOException
ConversionException
-
-