Class EMailAttachment
java.lang.Object
com.logicaldoc.core.communication.EMailAttachment
- All Implemented Interfaces:
Serializable
An attachment of an email message
- Author:
- Michael Scholz, Alessandro Gasparini - LogicalDOC
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
getIcon()
long
getSize()
Parse the attachment extracting the text using the parser configured for this specific filenameparseContent
(Long tenantId, Locale locale, String encoding) Parse the attachment extracting the text using the parser configured for this specific filenamevoid
setData
(byte[] data) void
setFileName
(String fileName) void
void
setMimeType
(String string) void
setSize
(long size)
-
Constructor Details
-
EMailAttachment
public EMailAttachment()
-
-
Method Details
-
getIcon
-
setIcon
-
getMimeType
-
setMimeType
-
getFileName
-
setFileName
-
getData
public byte[] getData() -
setData
public void setData(byte[] data) -
getSize
public long getSize() -
setSize
public void setSize(long size) -
parseContent
Parse the attachment extracting the text using the parser configured for this specific filename- Returns:
- the extracted text
- See Also:
-
parseContent
Parse the attachment extracting the text using the parser configured for this specific filename- Parameters:
tenantId
- tenant specification(optional, default isTenant.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
-