|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.rss.media.BaseMedia christophedelory.rss.media.Content
public class Content
Used to specify the enclosed media content.
The sequence of these items implies the order of presentation.
Contains the primary metadata entries needed to index and organize media content.
Additional supported attributes for describing images, audio, and video may be added in future revisions.
While many of the attributes appear to be audio/video specific, this element can be used to publish any type of media.
Example:
<media:content url="http://www.foo.com/movie.mov" fileSize="12216320" type="video/quicktime" medium="video" isDefault="true" expression="full" bitrate="128" framerate="25" samplingrate="44.1" channels="2" duration="185" height="200" width="300" lang="en"/>
Constructor Summary | |
---|---|
Content()
|
Method Summary | |
---|---|
Integer |
getBitrate()
Returns the integer representing the kilobits per second rate of media. |
Integer |
getChannels()
Returns the number of audio channels in the media object. |
Integer |
getDuration()
Returns the integer which represents the runtime of the video in seconds. |
String |
getExpression()
Specifies whether you're linking to a short sample of a longer video ("sample"), or if you're linking to the full thing ("full"), or if you're linking to a live stream ("nonstop"). |
Long |
getFileSize()
Returns the long integer representing the number of bytes of the media object. |
Integer |
getFramerate()
Returns the integer that specifies the number of frames per second of the media object. |
Integer |
getHeight()
Returns the integer representing the value in pixels for the height of the media object. |
Boolean |
getIsDefault()
Specifies if this is the default object that should be used for the media group. |
String |
getLang()
Returns the primary language encapsulated in the media object. |
String |
getMedium()
Returns the type of the media object. |
Float |
getSamplingrate()
Returns the number of samples per second taken to create the media object. |
String |
getType()
Returns the string containing the standard MIME type of the media object. |
URI |
getURL()
Returns the direct URL to the media object. |
String |
getURLString()
Returns the direct URL to the media object, and is required unless the media player tag is used. |
Integer |
getWidth()
Returns the integer representing the value in pixels for the width of the media object. |
boolean |
isDefault()
Specifies if this is the default object that should be used for the media group. |
void |
setBitrate(Integer bitrate)
Initializes the integer representing the kilobits per second rate of media. |
void |
setChannels(Integer channels)
Initializes the number of audio channels in the media object. |
void |
setDefault(boolean isDefault)
Specifies if this is the default object that should be used for the media group. |
void |
setDuration(int duration)
Initializes the integer which represents the runtime of the video in seconds. |
void |
setDuration(Integer duration)
Initializes the integer which represents the runtime of the video in seconds. |
void |
setExpression(String expression)
Specifies whether you're linking to a short sample of a longer video ("sample"), or if you're linking to the full thing ("full"), or if you're linking to a live stream ("nonstop"). |
void |
setFileSize(Long fileSize)
Initializes the long integer representing the number of bytes of the media object. |
void |
setFramerate(Integer framerate)
Initializes the integer that specifies the number of frames per second of the media object. |
void |
setHeight(Integer height)
Initializes the integer representing the value in pixels for the height of the media object. |
void |
setIsDefault(Boolean isDefault)
Specifies if this is the default object that should be used for the media group. |
void |
setLang(String lang)
Initializes the primary language encapsulated in the media object. |
void |
setMedium(String medium)
Initializes the type of the media object. |
void |
setSamplingrate(Float samplingrate)
Initializes the number of samples per second taken to create the media object. |
void |
setType(String type)
Initializes the string containing the standard MIME type of the media object. |
void |
setURL(URI url)
Initializes the direct URL to the media object. |
void |
setURLString(String url)
Initializes the direct URL to the media object. |
void |
setWidth(Integer width)
Initializes the integer representing the value in pixels for the width of the media object. |
Methods inherited from class christophedelory.rss.media.BaseMedia |
---|
addMediaCategory, addMediaCredit, addMediaHash, addMediaRating, addMediaRestriction, addMediaText, addMediaThumbnail, getMediaAdult, getMediaCategories, getMediaCopyright, getMediaCredits, getMediaDescription, getMediaHashes, getMediaKeywords, getMediaPlayer, getMediaRatings, getMediaRestrictions, getMediaTexts, getMediaThumbnails, getMediaTitle, isMediaAdult, setMediaAdult, setMediaAdult, setMediaCopyright, setMediaDescription, setMediaKeywords, setMediaPlayer, setMediaTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Content()
Method Detail |
---|
public void setURLString(String url) throws URISyntaxException
url
- an URL as a string. Shall not be null
.
NullPointerException
- if url
is null
.
URISyntaxException
- if the given string violates RFC 2396, as augmented by the URI
deviations.getURLString()
,
setURL(java.net.URI)
public String getURLString()
rtsp://www.hosthame.com/video.rm
".
null
.setURLString(java.lang.String)
,
getURL()
public void setURL(URI url)
url
- an URL. May be null
.getURL()
,
setURLString(java.lang.String)
public URI getURL()
null
.setURL(java.net.URI)
,
getURLString()
public void setDuration(int duration)
duration
- a duration.getDuration()
,
setDuration(Integer)
public void setDuration(Integer duration)
duration
- a duration. May be null
.getDuration()
,
setDuration(int)
public Integer getDuration()
null
.setDuration(int)
public void setBitrate(Integer bitrate)
bitrate
- a bitrate. May be null
.getBitrate()
public Integer getBitrate()
null
.setBitrate(java.lang.Integer)
public void setFramerate(Integer framerate)
framerate
- a frame rate. May be null
.getFramerate()
public Integer getFramerate()
null
.setFramerate(java.lang.Integer)
public void setSamplingrate(Float samplingrate)
samplingrate
- a sampling rate. May be null
.getSamplingrate()
public Float getSamplingrate()
null
.setSamplingrate(java.lang.Float)
public void setWidth(Integer width)
width
- a width. May be null
.getWidth()
public Integer getWidth()
null
.setWidth(java.lang.Integer)
public void setHeight(Integer height)
height
- a height. May be null
.getHeight()
public Integer getHeight()
null
.setHeight(java.lang.Integer)
public void setChannels(Integer channels)
channels
- a number of audio channels. May be null
.getChannels()
public Integer getChannels()
null
.setChannels(java.lang.Integer)
public void setFileSize(Long fileSize)
fileSize
- a file size. May be null
.getFileSize()
public Long getFileSize()
null
.setFileSize(java.lang.Long)
public String getType()
null
.setType(java.lang.String)
public void setType(String type)
type
- a MIME type. May be null
.getType()
public String getMedium()
null
.setMedium(java.lang.String)
public void setMedium(String medium)
medium
- a media object type. May be null
.getMedium()
public String getExpression()
null
.setExpression(java.lang.String)
public void setExpression(String expression)
expression
- a media object expression. May be null
.getExpression()
public String getLang()
null
.setLang(java.lang.String)
public void setLang(String lang)
lang
- a language code. May be null
.getLang()
public boolean isDefault()
setDefault(boolean)
,
getIsDefault()
public void setDefault(boolean isDefault)
isDefault
- the associated indicator.isDefault()
,
setIsDefault(java.lang.Boolean)
public Boolean getIsDefault()
false
(FIXME).
null
.setIsDefault(java.lang.Boolean)
,
isDefault()
public void setIsDefault(Boolean isDefault)
isDefault
- the associated indicator. May be null
.getIsDefault()
,
setDefault(boolean)
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |