ejel
Class Attachment

java.lang.Object
  extended by ejel.Attachment

public class Attachment
extends java.lang.Object

Represents an attached file to an Email object


Constructor Summary
Attachment(java.lang.String fileName)
          Attachment constructor
 
Method Summary
 java.lang.String getContentID()
          Gets the content ID of the attached file
 java.lang.String getFileName()
          Gets the attached file name
 long getFileSize()
          Gets the attached file size
 java.lang.String getMimeType()
          Gets the mime type of the attached file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment(java.lang.String fileName)
           throws java.lang.IllegalArgumentException
Attachment constructor

Parameters:
fileName - The file name of the new attached file
Throws:
java.lang.IllegalArgumentException
Method Detail

getFileName

public java.lang.String getFileName()
Gets the attached file name

Returns:
he attached file name

getFileSize

public long getFileSize()
Gets the attached file size

Returns:
The attached file size

getMimeType

public java.lang.String getMimeType()
Gets the mime type of the attached file

Returns:
The mime type of the attached file

getContentID

public java.lang.String getContentID()
Gets the content ID of the attached file

Returns:
The content ID of the attached file