|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.mail.Attachment
Attachment is a class for mail attachment objects. It contains the Object contents, a DataSource, or a DataHandler for the contents. It also stores the content type and a name for the attachment. Methods are also provided to get the editor or the viewer for the contents if a DataHandler is used.
| Constructor Summary | |
Attachment(DataHandler dh,
String attachmentName)
Constructor for an Attachment using a DataHandler and a specific name. |
|
Attachment(DataSource ds)
Constructor for an Attachment using a DataSource. |
|
Attachment(Object content,
String type,
String name)
Constructor for an Attachment specifying the Object content, the content type, and the name of the Attachment. |
|
| Method Summary | |
Object |
getContent()
Get the content of the Attachment. |
String |
getContentType()
Get the content type of the Attachment. |
DataHandler |
getDataHandler()
Get the DataHandler of the Attachment. |
DataSource |
getDataSource()
Get the DataSource of the Attachment. |
Component |
getEditor()
Get the editor component for the Attachment. |
String |
getName()
Get the name of the Attachment. |
Component |
getViewer()
Get the viewer component for the Attachment. |
void |
setName(String attachmentName)
Set the name of the Attachment. |
String |
toString()
Get the string representation of this Attachment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Attachment(DataHandler dh,
String attachmentName)
dh - a DataHandler containing the content for the AttachmentattachmentName - a String name for the Attachmentpublic Attachment(DataSource ds)
ds - a DataSource content for the Attachment
public Attachment(Object content,
String type,
String name)
content - the Object content of the Attachmenttype - the content type of the Attachmentname - the name of the Attachment| Method Detail |
public String toString()
toString in class Objectpublic Object getContent()
public String getContentType()
public DataHandler getDataHandler()
public DataSource getDataSource()
public String getName()
public void setName(String attachmentName)
attachmentName - the name of the Attachment.public Component getEditor()
public Component getViewer()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||