public class Thumbnail extends Object
<media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>
| Constructor and Description |
|---|
Thumbnail() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getHeight()
Returns the integer representing the value in pixels for the height of the thumbnail.
|
String |
getTime()
Returns the time offset in relation to the media object.
|
URI |
getURL()
Returns the URL of the thumbnail.
|
String |
getURLString()
Returns the URL of the thumbnail as a string.
|
Integer |
getWidth()
Returns the integer representing the value in pixels for the width of the thumbnail.
|
void |
setHeight(int height)
Initializes the integer representing the value in pixels for the height of the thumbnail.
|
void |
setHeight(Integer height)
Initializes the integer representing the value in pixels for the height of the thumbnail.
|
void |
setTime(String time)
Initializes the time offset in relation to the media object.
|
void |
setURL(URI url)
Initializes the URL of the thumbnail.
|
void |
setURLString(String url)
Initializes the URL of the thumbnail as a string.
|
void |
setWidth(int width)
Initializes the integer representing the value in pixels for the width of the thumbnail.
|
void |
setWidth(Integer width)
Initializes the integer representing the value in pixels for the width of the thumbnail.
|
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()
null.NullPointerException - if no URL is defined in this thumbnail.setURLString(java.lang.String),
getURL()public void setURL(URI url)
url - an URL. Shall not be null.NullPointerException - if url is null.getURL(),
setURLString(java.lang.String)public URI getURL()
null if not yet initialized.setURL(java.net.URI),
getURLString()public void setWidth(int width)
width - a thumbnail width.getWidth(),
setWidth(Integer)public void setWidth(Integer width)
width - a thumbnail width. May be null.getWidth(),
setWidth(int)public Integer getWidth()
null.setWidth(int)public void setHeight(int height)
height - a thumbnail height.setHeight(Integer),
getHeight()public void setHeight(Integer height)
height - a thumbnail height. May be null.getHeight(),
setHeight(int)public Integer getHeight()
null.setHeight(int)public String getTime()
null.setTime(java.lang.String)Copyright © 2008–2017. All rights reserved.