java.lang.Object | ||
↳ | com.kinvey.java.File | |
↳ | com.kinvey.nativejava.File |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
deleteBlocking(FileMetaData metadata, KinveyClientCallback<KinveyDeleteResponse> callback)
Deletes the given file from the Kinvey file service.
| ||||||||||
void | downloadBlocking(FileMetaData metaData, OutputStream out, DownloaderProgressListener listener) | ||||||||||
void |
downloadBlocking(Query query, OutputStream out, DownloaderProgressListener listener)
Download a file by Query, only the first result will be downloaded.
| ||||||||||
void |
downloadMetaDataBlocking(String id, KinveyClientCallback<Void> callback)
Downloads just the metadata of a file
| ||||||||||
void |
downloadWithTTLBlocking(String id, int ttl, OutputStream out, DownloaderProgressListener listener)
Download a file asyncronously with a custom time to live.
| ||||||||||
void |
uploadBlocking(String name, InputStream inputStream, UploaderProgressListener listener)
Uploads the contents of the stream to the Kinvey file service endpoint.
| ||||||||||
void | uploadBlocking(File file, UploaderProgressListener listener) | ||||||||||
void |
uploadBlocking(FileMetaData meta, InputStream inputStream, UploaderProgressListener listener)
Uploads the contents of the stream to the Kinvey file service endpoint.
| ||||||||||
void |
uploadBlocking(FileMetaData meta, File file, UploaderProgressListener listener)
Upload a java.io.File with it's associated metadata
| ||||||||||
void |
uploadMetaDataBlocking(FileMetaData meta, KinveyClientCallback<Void> callback)
Upload metadata for an existing file
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Deletes the given file from the Kinvey file service.
metadata | the metadata of the file |
---|---|
callback | an implementation of a client callback to get results on the UI thread from the async call. |
IOException |
---|
IOException |
---|
Download a file by Query, only the first result will be downloaded.
query | - the query, with a limit of 1 |
---|---|
out | - where to download the file |
listener | - for progress notifications |
IOException |
---|
Downloads just the metadata of a file
id | the metadata of the file |
---|---|
callback | an implementation of a client callback to get results on the UI thread from the async call. |
IOException |
---|
Download a file asyncronously with a custom time to live.
id | - the id of the file to download |
---|---|
ttl | - the custom ttl to use for the download URL |
out | - where to download the file |
listener | - for progress notifications |
IOException |
---|
Uploads the contents of the stream to the Kinvey file service endpoint.
name | name to refer to the blob when stored with the file service endpoint |
---|---|
inputStream | stream to be uploaded |
listener | an implementation of a client listener to get results on the UI thread from the async call. |
IOException |
---|
Uploads the contents of the stream to the Kinvey file service endpoint.
meta | the metadata of the file to upload |
---|---|
inputStream | stream to be uploaded |
listener | an implementation of a client listener to get results on the UI thread from the async call. |
IOException |
---|
Upload a java.io.File with it's associated metadata
meta | the metadata of the file to upload |
---|---|
file | the file itself |
listener | listener for callbacks about upload progress |
IOException |
---|
Upload metadata for an existing file
meta | the FileMetaData to update |
---|---|
callback | an implementation of a client callback to get results on the UI thread from the async call. |
IOException |
---|