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 Blobconvert(Blob blob)BlobHolderconvert(BlobHolder blobHolder, Map<String,Serializable> parameters)Main method to handle the real Conversion Job.protected StringdetectEncoding(InputStream in)Deprecated.since 11.1.protected StringdetectEncoding(Blob blob)voidinit(ConverterDescriptor descriptor)Initializes the Converter.
-
-
-
Method Detail
-
init
public void init(ConverterDescriptor descriptor)
Description copied from interface:ConverterInitializes 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:ConverterMain method to handle the real Conversion Job.Returned
BlobHoldermust implementCachableBlobHolder, otherwise result won't be cached.- Specified by:
convertin interfaceConverter- Throws:
ConversionException
-
convert
protected Blob convert(Blob blob) throws IOException, ConversionException
- Throws:
IOExceptionConversionException
-
detectEncoding
@Deprecated protected String detectEncoding(InputStream in) throws IOException, ConversionException
Deprecated.since 11.1. UsedetectEncoding(Blob)instead.- Throws:
IOExceptionConversionException
-
detectEncoding
protected String detectEncoding(Blob blob) throws IOException, ConversionException
- Throws:
IOExceptionConversionException
-
-