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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]getData()getIcon()longgetSize()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 filenamevoidsetContentEncoding(String contentEncoding) voidsetContentType(String contentType) voidsetData(byte[] data) voidsetDisposition(String disposition) voidsetFileName(String fileName) voidvoidsetMimeType(String string) voidsetSize(long size) 
- 
Constructor Details- 
EMailAttachmentpublic EMailAttachment()
 
- 
- 
Method Details- 
getIcon
- 
setIcon
- 
getMimeType
- 
setMimeType
- 
getFileName
- 
setFileName
- 
getDatapublic byte[] getData()
- 
setDatapublic void setData(byte[] data) 
- 
getSizepublic long getSize()
- 
setSizepublic void setSize(long size) 
- 
parseContentParse the attachment extracting the text using the parser configured for this specific filename- Returns:
- the extracted text
- See Also:
 
- 
parseContentParse 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
 
- 
getDisposition
- 
setDisposition
- 
getContentType
- 
setContentType
- 
getContentEncoding
- 
setContentEncoding
 
-