Package fr.paris.lutece.util.mail
Class FileAttachment
java.lang.Object
fr.paris.lutece.util.mail.FileAttachment
- All Implemented Interfaces:
Serializable
File Attachement Object
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileAttachment(String fileName, byte[] data, String type) Creates a new FileAttachement object. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()getType()return the file content-typevoidsetData(byte[] data) set the content of the fileAttachement objectvoidsetFileName(String fileName) set the file namevoidset the file content-type
-
Constructor Details
-
FileAttachment
Creates a new FileAttachement object.- Parameters:
fileName- the file namedata- The datatype- The file Content-type
-
-
Method Details
-
getData
public byte[] getData()- Returns:
- the content of the fileAttachement object
-
setData
public void setData(byte[] data) set the content of the fileAttachement object- Parameters:
data- the content of the fileAttachement object
-
getFileName
- Returns:
- the file name
-
setFileName
set the file name- Parameters:
fileName- the file name
-
getType
return the file content-type- Returns:
- Content-type
-
setType
set the file content-type- Parameters:
type- the file content-type
-