cz.utb.fai.simkovicp.pki.mail
Class Attachment
java.lang.Object
cz.utb.fai.simkovicp.pki.mail.Attachment
- All Implemented Interfaces:
- java.io.Serializable
public class Attachment
- extends java.lang.Object
- implements java.io.Serializable
This class represents the mail attachment.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Attachment
public Attachment()
Attachment
public Attachment(java.lang.String filename,
byte[] data,
AttachmentType mimetype)
getFilename
public java.lang.String getFilename()
- Returns:
- the filename
setFilename
public void setFilename(java.lang.String filename)
- Parameters:
filename - the filename to set
getData
public byte[] getData()
- Returns:
- the data
setData
public void setData(byte[] data)
- Parameters:
data - the data to set
getMimetype
public AttachmentType getMimetype()
- Returns:
- the mimetype
setMimetype
public void setMimetype(AttachmentType mimetype)
- Parameters:
mimetype - the mimetype to set
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object