|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Attachment
A file attached to an e-mail.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.genesyslab.ail.IdObject |
|---|
IdObject.ObjectType |
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Returns the attachment's MIME content type. |
byte[] |
getData()
Returns the content of this attachment as a buffer. |
java.lang.String |
getFilename()
Returns the attachment's file name. |
int |
getSize()
Returns the size of this attachment. |
void |
setContentType(java.lang.String mime_content_type)
Sets the content type of this attachment. |
void |
setData(byte[] buffer)
Sets the content of this attachment. |
void |
setFilename(java.lang.String file_name)
Modifies the attachment's file name. |
| Methods inherited from interface com.genesyslab.ail.IdObject |
|---|
getId, getObjectType |
| Method Detail |
|---|
java.lang.String getContentType()
"text/plain",
"application/x-zip-compressed", and much more... Refer to
the RFC
2046 for additional information.
java.lang.String getFilename()
null if no file name has
been specified.void setFilename(java.lang.String file_name)
file_name - the file name to setbyte[] getData()
byte array.int getSize()
void setData(byte[] buffer)
buffer - the content of the attachment as a byte array.void setContentType(java.lang.String mime_content_type)
mime_content_type - the attachment's MIME content type. A MIME
content type can be "text/plain",
"application/x-zip-compressed", and much more. Refer to
the RFC
2046 for additional information.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||