public abstract class Media extends Element implements MMSMessagePart, java.io.Serializable
All the media elements are semantically identical. When playing back a media object, the player must not derive the exact type of the media object from the name of the media object element. Instead, it must rely solely on other sources about the type, such as type information contained in the type attribute, or the type information communicated by a server or the operating system.
COMMON_CLASS, COMMON_ID, COMMON_TITLE, COMMON_XML_LANG, CONTCTRL_AUDIO_DESC, CONTCTRL_BITRATE, CONTCTRL_CAPTIONS, CONTCTRL_COMPONENT, CONTCTRL_CPU, CONTCTRL_LANGUAGE, CONTCTRL_OPERATING_SYSTEM, CONTCTRL_OVERDUB_OR_SUBTITLE, CONTCTRL_REQUIRED, CONTCTRL_SCREEN_DEPTH, CONTCTRL_SCREEN_SIZE, LINKING_ACCESSKEY, LINKING_ACTUATE, LINKING_ALT, LINKING_DEST_LEVEL, LINKING_DEST_PLAYSTATE, LINKING_EXTERNAL, LINKING_HREF, LINKING_SHOW, LINKING_SRC_LEVEL, LINKING_SRC_PLAYSTATE, LINKING_TABINDEX, LINKING_TARGET, MEDIA_SRC, MEDIA_TYPE, TIMING_BEGIN, TIMING_DUR, TIMING_END, TIMING_ENDSYNC, TIMING_FILL, TIMING_MAX, TIMING_MIN, TIMING_REPEAT_COUNT, TIMING_REPEAT_DUR
Modifier and Type | Method and Description |
---|---|
Element |
addAttribute(java.lang.String name,
java.lang.String value)
Add an attribute for this media element.
|
java.lang.String |
getCharset()
Get the character set of the content.
|
byte[] |
getContent()
Get the content data of this message part.
|
java.lang.String |
getContentID()
Get the Content-ID 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.
|
void |
setContentID(java.lang.String id)
Set the Content-ID for this Message Part.
|
java.lang.String |
toString() |
getElements, toXML
public Element addAttribute(java.lang.String name, java.lang.String value)
addAttribute
in class Element
name
- the attribute namevalue
- the attribute valuejava.lang.IllegalArgumentException
- for invalid attributespublic java.lang.String getContentLocation()
MMSMessagePart
SMIL document
refers to this location.getContentLocation
in interface MMSMessagePart
public java.lang.String getContentID()
MMSMessagePart
getContentID
in interface MMSMessagePart
public void setContentID(java.lang.String id)
id
- the Content-IDpublic java.lang.String getMimeType()
MMSMessagePart
getMimeType
in interface MMSMessagePart
public byte[] getContent()
MMSMessagePart
getContent
in interface MMSMessagePart
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getCharset()
MMSMessagePart
getCharset
in interface MMSMessagePart
public void setCharset(java.lang.String charset)
MMSMessagePart
setCharset
in interface MMSMessagePart
charset
- the character set (e.g. "UTF-8").public java.lang.String getContentType()
MMSMessagePart
getContentType
in interface MMSMessagePart
object XP, Inc. © 2000-2013. All rights reserved object XP