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(java.io.File destFile)
Downloads existing media file from server.
|
java.lang.String |
getContent() |
java.lang.Long |
getContentLength() |
java.lang.String |
getMediaName() |
protected java.lang.String |
getUri() |
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
java.lang.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 java.lang.Long getContentLength()
public java.lang.String getMediaName()
public java.lang.String getContent()
public void downloadTo(java.io.File destFile) throws java.io.IOException
destFile
- file for putting content. Will be overridden.java.io.IOException
- unexpected error.public void delete() throws java.io.IOException, AppPlatformException
java.io.IOException
- unexpected error.AppPlatformException
- unexpected exception.public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getUri()
Copyright © 2019. All Rights Reserved.