|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface representing a multimedia message item. This item can hold any text or binary data.
Note that the application must take care of setting the MIME type of the multimedia item correctly.
See the Internet RFCs such as RFC 2045 for more information on MIME. Protocols such as SMTP and HTTP define profiles of MIME, and those standards are still evolving.
Method Summary | |
byte[] |
getData()
Returns the item data as an array of bytes. |
int |
getLength()
Returns the length, in bytes, of the item data, or -1 if the length is not known. |
java.lang.String |
getMimeType()
Returns the MIME type of this item, or null if the type is not known. |
void |
setData(byte[] data)
Sets the data of this item. |
java.lang.String |
setMimeType(java.lang.String type)
Sets the MIME type of this item. |
Method Detail |
public byte[] getData()
public int getLength()
public java.lang.String getMimeType()
public void setData(byte[] data)
data
- item data as a byte arraypublic java.lang.String setMimeType(java.lang.String type)
type
- a String specifying the MIME type of the content
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |