public class RFC822ToTextConverter extends Object implements Converter
Modifier and Type | Field and Description |
---|---|
protected ConverterDescriptor |
descriptor |
Constructor and Description |
---|
RFC822ToTextConverter() |
Modifier and Type | Method and Description |
---|---|
BlobHolder |
convert(BlobHolder blobHolder,
Map<String,Serializable> parameters)
Main method to handle the real Conversion Job.
|
protected Blob |
extractTextFromMessage(Blob blob) |
protected static byte[] |
extractTextFromMessagePart(javax.mail.Part p) |
protected static List<javax.mail.Part> |
getAttachmentParts(javax.mail.Part p) |
void |
init(ConverterDescriptor descriptor)
Initializes the Converter.
|
protected static void |
writeInfo(OutputStream stream,
javax.mail.Address address) |
protected static void |
writeInfo(OutputStream stream,
javax.mail.Address[] addresses) |
protected static void |
writeInfo(OutputStream stream,
byte[] info) |
protected static void |
writeInfo(OutputStream stream,
String info) |
protected ConverterDescriptor descriptor
public RFC822ToTextConverter()
protected Blob extractTextFromMessage(Blob blob)
protected static void writeInfo(OutputStream stream, javax.mail.Address address)
protected static void writeInfo(OutputStream stream, javax.mail.Address[] addresses)
protected static void writeInfo(OutputStream stream, String info)
protected static void writeInfo(OutputStream stream, byte[] info)
protected static byte[] extractTextFromMessagePart(javax.mail.Part p) throws javax.mail.MessagingException, IOException
javax.mail.MessagingException
IOException
protected static List<javax.mail.Part> getAttachmentParts(javax.mail.Part p) throws javax.mail.MessagingException, IOException
javax.mail.MessagingException
IOException
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
public void init(ConverterDescriptor descriptor)
Converter
This can be used to retrieve some configuration information from the XMap Descriptor.
Copyright © 2015 Nuxeo SA. All rights reserved.