Class RFC822ToTextConverter

java.lang.Object
org.nuxeo.ecm.core.convert.plugins.text.extractors.RFC822ToTextConverter
All Implemented Interfaces:
Converter

public class RFC822ToTextConverter extends Object implements Converter
  • Field Details

  • Constructor Details

    • RFC822ToTextConverter

      public RFC822ToTextConverter()
  • Method Details

    • extractTextFromMessage

      protected Blob extractTextFromMessage(Blob blob)
    • writeInfo

      protected static void writeInfo(OutputStream stream, javax.mail.Address address)
    • writeInfo

      protected static void writeInfo(OutputStream stream, javax.mail.Address[] addresses)
    • writeInfo

      protected static void writeInfo(OutputStream stream, String info)
    • writeInfo

      protected static void writeInfo(OutputStream stream, byte[] info)
    • extractTextFromMessagePart

      protected static byte[] extractTextFromMessagePart(javax.mail.Part p) throws javax.mail.MessagingException, IOException
      Throws:
      javax.mail.MessagingException
      IOException
    • getAttachmentParts

      protected static List<javax.mail.Part> getAttachmentParts(javax.mail.Part p) throws javax.mail.MessagingException, IOException
      Throws:
      javax.mail.MessagingException
      IOException
    • 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 implement CachableBlobHolder, otherwise result won't be cached.

      Specified by:
      convert in interface Converter
      Throws:
      ConversionException
    • 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.

      Specified by:
      init in interface Converter