public class UTF8CharsetConverter extends Object implements Converter
Constructor and Description |
---|
UTF8CharsetConverter() |
Modifier and Type | Method and 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) |
void |
init(ConverterDescriptor descriptor)
Initializes the Converter.
|
public UTF8CharsetConverter()
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
protected Blob convert(Blob blob) throws IOException, ConversionException
IOException
ConversionException
protected String detectEncoding(InputStream in) throws IOException, ConversionException
IOException
ConversionException
Copyright © 2018 Nuxeo. All rights reserved.