public class MediaObject extends Object
| Constructor and Description |
|---|
MediaObject() |
| Modifier and Type | Method and Description |
|---|---|
int |
getContentBytes() |
int |
getContentHeight() |
String |
getContentSrcKey()
Gets the key that will be used to identify the content source of the
object.
|
String |
getContentType() |
int |
getContentWidth() |
String |
getUri() |
void |
setContentBytes(int bytes)
Sets the size of the media object in bytes.
|
void |
setContentHeight(int height)
If the media object is an image, it sets the image height.
|
void |
setContentSrcKey(String contentSrcKey)
Sets the content source key that should be used to retrieve this media object.
|
void |
setContentType(String contentType)
Sets the content type of this
MediaObject. |
void |
setContentWidth(int width)
If the media object is an image, it sets the image width.
|
void |
setUri(String uri)
Sets the URI to get this media object.
|
public String getContentType()
public void setContentType(String contentType)
MediaObject. Examples: audio/mpeg, image/jpeg.contentType - public String getContentSrcKey()
public void setContentSrcKey(String contentSrcKey)
contentSrcKey - the content source keypublic String getUri()
public void setUri(String uri)
uri - the URIpublic int getContentWidth()
public void setContentWidth(int width)
width - the image widthpublic int getContentHeight()
public void setContentHeight(int height)
height - the image heightpublic int getContentBytes()
public void setContentBytes(int bytes)
bytes - the size of the media objectCopyright © 2014, Oracle and/or its affiliates. All rights reserved.