Package de.xima.fc.mdl.mail.data
Class FilePartData
java.lang.Object
de.xima.fc.mdl.mail.data.FilePartData
- All Implemented Interfaces:
Serializable
Class for storing informations and data for an mail-bodypart based on an file
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFilePartData(File file) FilePartData(String name, String contentType, byte[] data) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()getName()voidsetContentType(String contentType) voidsetData(byte[] data) void
-
Constructor Details
-
FilePartData
-
FilePartData
- Throws:
IOException
-
-
Method Details
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getContentType
- Returns:
- the contentType
-
setContentType
- Parameters:
contentType- the contentType to set
-
getData
public byte[] getData()- Returns:
- the data
-
setData
public void setData(byte[] data) - Parameters:
data- the data to set
-