public class MediaFile extends ResourceBase
client, id, properties
dateFormat
Constructor and Description |
---|
MediaFile(BandwidthClient client,
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() |
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
String |
toString() |
getClient, getId, getProperties, setId, toJSONArray, toJSONObject
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
public MediaFile(BandwidthClient client, org.json.simple.JSONObject jsonObject)
protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
public Long getContentLength()
public String getMediaName()
public String getContent()
public void downloadTo(File destFile) throws IOException
destFile
- file for putting content. Will be overridden.IOException
public void delete() throws IOException
IOException
protected String getUri()
Copyright © 2014. All Rights Reserved.