public class File extends VirtualObject
| Modifier and Type | Class and Description |
|---|---|
static interface |
File.DownloadCallback |
| Constructor and Description |
|---|
File() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(VoidCallback callback)
Delete this file.
|
void |
download(File.DownloadCallback callback)
Download content of this file.
|
void |
download(java.io.File localFile,
VoidCallback callback)
Download content of this file to a local file.
|
java.lang.String |
getContainer()
Name of the container this file belongs to.
|
Container |
getContainerRef() |
java.lang.String |
getName()
The name of the file, e.g.
|
java.lang.String |
getUrl()
The URL of the file.
|
void |
setContainerRef(Container container) |
void |
setName(java.lang.String name) |
void |
setUrl(java.lang.String url) |
getCreationParameters, getRepository, invokeMethod, invokeMethod, setCreationParameters, setRepository, toMappublic void setName(java.lang.String name)
public java.lang.String getName()
public void setUrl(java.lang.String url)
public java.lang.String getUrl()
public void setContainerRef(Container container)
public Container getContainerRef()
public java.lang.String getContainer()
public void download(File.DownloadCallback callback)
callback - The callback to be executed when finished.public void download(java.io.File localFile,
VoidCallback callback)
localFile - Path to the local file.callback - The callback to be executed when finished.public void delete(VoidCallback callback)
callback - The callback to be executed when finished.