Package de.xima.fc.mdl.mail.data
Class FilePartData
- java.lang.Object
-
- de.xima.fc.mdl.mail.data.FilePartData
-
- All Implemented Interfaces:
Serializable
public class FilePartData extends Object implements Serializable
Class for storing informations and data for an mail-bodypart based on an file- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilePartData(File file)
FilePartData(String name, String contentType, byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
byte[]
getData()
String
getName()
void
setContentType(String contentType)
void
setData(byte[] data)
void
setName(String name)
-
-
-
Constructor Detail
-
FilePartData
public FilePartData(File file) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name
- the name to set
-
getContentType
public String getContentType()
- Returns:
- the contentType
-
setContentType
public void setContentType(String contentType)
- 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
-
-