|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.mail.MailService.Attachment
public static class MailService.Attachment
Constructor Summary | |
---|---|
MailService.Attachment(java.lang.String fileName,
byte[] data)
Attachments are an optional part of messages, but if present, all information about them must be provided. |
Method Summary | |
---|---|
byte[] |
getData()
Gets the content of this attachment. |
java.lang.String |
getFileName()
Gets the file name of this attachment. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailService.Attachment(java.lang.String fileName, byte[] data)
fileName
- The attachment must have a filename associated with it.
The extension on that filename must be present and white-listed, or
there will be a failure at send time.data
- An array with arbitrary byte content. The array must be
be present, but may be of zero length.
java.lang.IllegalArgumentException
- if either fileName or data are missing.Method Detail |
---|
public java.lang.String getFileName()
public byte[] getData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |