Class EMailAttachment

java.lang.Object
com.logicaldoc.core.communication.EMailAttachment
All Implemented Interfaces:
Serializable

public class EMailAttachment extends Object implements Serializable
An attachment of an email message
Author:
Michael Scholz, Alessandro Gasparini - LogicalDOC
See Also:
  • Constructor Details

    • EMailAttachment

      public EMailAttachment()
  • Method Details

    • 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

      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