com.objectxp.mms.message
Interface MMSMessagePart

All Known Implementing Classes:
Animation, Audio, GenericMessagePart, Image, Link, Media, Text, Textstream, Video

public interface MMSMessagePart

This Interface represents a content part of a MMS message. A MMSMessage may contain one or multiple content parts.


Method Summary
 java.lang.String getCharset()
          Get the character set of the content.
 byte[] getContent()
          Get the content data of this message part.
 java.lang.String getContentLocation()
          Get the content location of this message part.
 java.lang.String getContentType()
          Get the content-type of this message part.
 java.lang.String getMimeType()
          Get the mime-type of this message part.
 void setCharset(java.lang.String charset)
          Set the character set (encoding) that has been used for encoding the content.
 

Method Detail

getContent

byte[] getContent()
Get the content data of this message part.

Returns:
a byte[] with the content data.

getMimeType

java.lang.String getMimeType()
Get the mime-type of this message part. The mime-type is part of the content-type.

Returns:
the mimeType of the content.

getContentType

java.lang.String getContentType()
Get the content-type of this message part.

Returns:
the content-type.
Since:
jSMS 2.2

setCharset

void setCharset(java.lang.String charset)
Set the character set (encoding) that has been used for encoding the content. If unset, jSMS assumes that the text has been encoded using your platforms default character encoding. The character set is ignored for binary content.

Parameters:
charset - the character set (e.g. "UTF-8").
Since:
jSMS 2.2

getCharset

java.lang.String getCharset()
Get the character set of the content. The character set is ignored for binary content.

Returns:
the character set or null if unset.
Since:
jSMS 2.2

getContentLocation

java.lang.String getContentLocation()
Get the content location of this message part. A SMIL document refers to this location.

Returns:
the location of the content.


object XP, Inc. © 2000-2008. All rights reserved object XP