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()
String
getFileName()
String
getIcon()
String
getMimeType()
long
getSize()
String
parseContent()
Parse the attachment extracting the text using the parser configured for this specific filenameString
parseContent(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
setIcon(String icon)
void
setMimeType(String string)
void
setSize(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
-
-