Class EMailAttachment
- java.lang.Object
-
- com.logicaldoc.core.communication.EMailAttachment
-
public class EMailAttachment extends Object
- Author:
- Michael Scholz, Alessandro Gasparini - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description EMailAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()StringgetFileName()StringgetIcon()StringgetMimeType()longgetSize()StringparseContent()Parse the attachment extracting the text using the parser configured for this specific filenameStringparseContent(Long tenantId, Locale locale, String encoding)Parse the attachment extracting the text using the parser configured for this specific filenamevoidsetData(byte[] data)voidsetFileName(String fileName)voidsetIcon(String icon)voidsetMimeType(String string)voidsetSize(long size)
-
-
-
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 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
-
-