Class EMailAttachment


  • public class EMailAttachment
    extends Object
    Author:
    Michael Scholz, Alessandro Gasparini - LogicalDOC
    • Constructor Detail

      • EMailAttachment

        public EMailAttachment()
    • Method Detail

      • getIcon

        public String getIcon()
      • setIcon

        public void setIcon​(String icon)
      • getMimeType

        public String getMimeType()
      • setMimeType

        public void setMimeType​(String string)
      • getFileName

        public String getFileName()
      • setFileName

        public void setFileName​(String fileName)
      • getData

        public byte[] getData()
      • setData

        public void setData​(byte[] data)
      • getSize

        public long getSize()
      • setSize

        public void setSize​(long size)
      • parseContent

        public String parseContent()
        Parse the attachment extracting the text using the parser configured for this specific filename
        Returns:
        the extracted text
        See Also:
        parseContent(Long, Locale, String)
      • parseContent

        public String parseContent​(Long tenantId,
                                   Locale locale,
                                   String encoding)
        Parse the attachment extracting the text using the parser configured for this specific filename
        Parameters:
        tenantId - tenant specification(optional, default is Tenant.DEFAULT_ID)
        locale - the language in which the attachment is written(optional, defaults to english)
        encoding - the character encoding(optional, defaults to UTF-8)
        Returns:
        the extracted text