com.objectxp.mms.message.smil
Class Video

java.lang.Object
  extended by com.objectxp.mms.message.smil.Element
      extended by com.objectxp.mms.message.smil.Media
          extended by com.objectxp.mms.message.smil.Video
All Implemented Interfaces:
MMSMessagePart, java.io.Serializable

public class Video
extends Media

A SMIL "video" element.

Since:
jSMS 2.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.objectxp.mms.message.smil.Element
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
 
Constructor Summary
Video(byte[] content, java.lang.String name)
          Create a new Video.
Video(byte[] content, java.lang.String name, java.lang.String mimeType)
          Create a new Video.
Video(java.io.InputStream src, java.lang.String name, java.lang.String mimeType)
          Construct a new Video.
 
Method Summary
 
Methods inherited from class com.objectxp.mms.message.smil.Media
addAttribute, getCharset, getContent, getContentLocation, getContentType, getMimeType, setCharset, toString
 
Methods inherited from class com.objectxp.mms.message.smil.Element
getElements, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Video

public Video(byte[] content,
             java.lang.String name)
Create a new Video. The name of the video will be used to determine the MIME type of the video.

Parameters:
content - the video data
name - the video name (e.g. 'hello.avi')

Video

public Video(byte[] content,
             java.lang.String name,
             java.lang.String mimeType)
Create a new Video. to determine the MIME type of the video.

Parameters:
content - the video data
name - the video name (e.g. 'hello.avi')
mimeType - the MIME type of the animation (e.g. 'video/avi')

Video

public Video(java.io.InputStream src,
             java.lang.String name,
             java.lang.String mimeType)
      throws java.io.IOException
Construct a new Video. The video data will be read from a InputStream.

Parameters:
src - a input stream providing the video data
name - the name of the video (e.g. 'hello.avi')
mimeType - the MIME type of the video (e.g. 'video/avi')
Throws:
java.io.IOException - if an I/O error occurs


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