public class MediaFile extends BaseModelObject
client, dateFormat, parentUri, properties| Constructor and Description |
|---|
MediaFile(BandwidthRestClient client,
String parentUri,
org.json.simple.JSONObject jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes media file permanently.
|
void |
downloadTo(File destFile)
Downloads existing media file from server.
|
String |
getContent() |
Long |
getContentLength() |
String |
getMediaName() |
protected String |
getUri() |
String |
toString() |
getId, getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updatePropertiespublic MediaFile(BandwidthRestClient client, String parentUri, org.json.simple.JSONObject jsonObject)
public Long getContentLength()
public String getMediaName()
public String getContent()
public void downloadTo(File destFile) throws IOException
destFile - file for putting content. Will be overridden.IOExceptionpublic void delete()
throws IOException
IOExceptionprotected String getUri()
getUri in class BaseModelObjectCopyright © 2014. All rights reserved.