cz.utb.fai.simkovicp.pki.mail
Class Attachment

java.lang.Object
  extended by 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

Constructor Summary
Attachment()
           
Attachment(java.lang.String filename, byte[] data, AttachmentType mimetype)
           
 
Method Summary
 byte[] getData()
           
 java.lang.String getFilename()
           
 AttachmentType getMimetype()
           
 void setData(byte[] data)
           
 void setFilename(java.lang.String filename)
           
 void setMimetype(AttachmentType mimetype)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment()

Attachment

public Attachment(java.lang.String filename,
                  byte[] data,
                  AttachmentType mimetype)
Method Detail

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