public class NCMBFile extends NCMBBase
mClassName, mFields, mIgnoreKeys, mUpdateKeys
Constructor and Description |
---|
NCMBFile()
Constructor
|
NCMBFile(java.lang.String fileName)
Constructor with fileName
|
NCMBFile(java.lang.String fileName,
byte[] fileData,
NCMBAcl acl)
Constructor with fileName and fileData and fileACL
|
NCMBFile(java.lang.String fileName,
NCMBAcl acl)
Constructor with fileName and fileACL
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete file from file store
|
void |
deleteInBackground(DoneCallback callback)
Delete file from file store asynchronously
|
byte[] |
fetch()
Get fileData from file store
|
void |
fetchInBackground(FetchFileCallback callback)
Get file from file store asynchronously
|
byte[] |
getFileData()
Get fileData
|
java.lang.String |
getFileName()
Get fileName
|
static NCMBQuery<NCMBFile> |
getQuery()
Create query for file class
|
void |
save()
Upload file to file store
|
void |
saveInBackground(DoneCallback callback)
Upload file to file store asynchronously
|
void |
setFileData(byte[] data)
Set fileData
|
void |
setFileName(java.lang.String fileName)
Set fileName
|
void |
update()
Update file to file store
|
void |
updateInBackground(DoneCallback callback)
Update file to file store asynchronously
|
allKeys, containsKey, createUpdateJsonData, getAcl, getBoolean, getClassName, getCreateDate, getDate, getDouble, getGeolocation, getIncludeObject, getInt, getJSONArray, getJSONObject, getList, getLong, getMap, getObjectId, getString, getUpdateDate, put, put, put, put, put, put, put, put, put, put, put, put, put, remove, setAcl, setAclFromInternal, setCreateDate, setObjectId, setUpdateDate
public NCMBFile() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic NCMBFile(java.lang.String fileName) throws NCMBException
fileName
- file nameNCMBException
- exception from NIFCLOUD mobile backendpublic NCMBFile(java.lang.String fileName, NCMBAcl acl) throws NCMBException
fileName
- file nameacl
- file aclNCMBException
- exception from NIFCLOUD mobile backendpublic NCMBFile(java.lang.String fileName, byte[] fileData, NCMBAcl acl) throws NCMBException
fileName
- file namefileData
- file dataacl
- file aclNCMBException
- exception from NIFCLOUD mobile backendpublic void setFileName(java.lang.String fileName)
fileName
- fileNamepublic java.lang.String getFileName()
public void setFileData(byte[] data)
data
- fileDatapublic byte[] getFileData()
public static NCMBQuery<NCMBFile> getQuery()
public void save() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void saveInBackground(DoneCallback callback)
callback
- callback after file savepublic void update() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void updateInBackground(DoneCallback callback)
callback
- callback after file updatepublic void delete() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void deleteInBackground(DoneCallback callback)
callback
- callback after file deletepublic byte[] fetch() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void fetchInBackground(FetchFileCallback callback)
callback
- callback after file get