java.lang.Object |
↳ |
java.util.AbstractMap<K, V> |
|
↳ |
com.google.api.client.util.GenericData |
|
|
↳ |
com.google.api.client.json.GenericJson |
|
|
|
↳ |
com.kinvey.java.model.FileMetaData |
Class Overview
This class maintains information about a file that has been stored with Kinvey. Every file has a unique ID, as well as other attributes
including but not limited too: filename, size, mimetype, acl, and a public access flag.
This object can also maintain any custom attributes, which can be set via accessor methods provided by GenericJson
Summary
Public Constructors |
|
FileMetaData()
Create a new instance, without setting any fields
If an ID is not set, it will be auto-generated by the service
|
|
FileMetaData(String id)
Create a new instance, and set the id of the file
|
[Expand]
Inherited Methods |
From class
com.google.api.client.json.GenericJson
Object
|
clone()
|
final
JsonFactory
|
getFactory()
|
final
void
|
setFactory(JsonFactory arg0)
|
String
|
toPrettyString()
|
String
|
toString()
|
|
From class
com.google.api.client.util.GenericData
Object
|
clone()
|
Set<Entry<String, Object>>
|
entrySet()
|
final
Object
|
get(Object arg0)
|
final
ClassInfo
|
getClassInfo()
|
final
Map<String, Object>
|
getUnknownKeys()
|
final
Object
|
put(String arg0, Object arg1)
|
Object
|
put(Object arg0, Object arg1)
|
final
void
|
putAll(Map<? extends String, ?> arg0)
|
final
Object
|
remove(Object arg0)
|
GenericData
|
set(String arg0, Object arg1)
|
final
void
|
setUnknownKeys(Map<String, Object> arg0)
|
|
From class
java.util.AbstractMap
void
|
clear()
|
boolean
|
containsKey(Object arg0)
|
boolean
|
containsValue(Object arg0)
|
abstract
Set<Entry<K, V>>
|
entrySet()
|
boolean
|
equals(Object arg0)
|
V
|
get(Object arg0)
|
int
|
hashCode()
|
boolean
|
isEmpty()
|
Set<K>
|
keySet()
|
V
|
put(K arg0, V arg1)
|
void
|
putAll(Map<? extends K, ? extends V> arg0)
|
V
|
remove(Object arg0)
|
int
|
size()
|
String
|
toString()
|
Collection<V>
|
values()
|
|
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.util.Map
abstract
void
|
clear()
|
abstract
boolean
|
containsKey(Object arg0)
|
abstract
boolean
|
containsValue(Object arg0)
|
abstract
Set<Entry<K, V>>
|
entrySet()
|
abstract
boolean
|
equals(Object arg0)
|
abstract
V
|
get(Object arg0)
|
abstract
int
|
hashCode()
|
abstract
boolean
|
isEmpty()
|
abstract
Set<K>
|
keySet()
|
abstract
V
|
put(K arg0, V arg1)
|
abstract
void
|
putAll(Map<? extends K, ? extends V> arg0)
|
abstract
V
|
remove(Object arg0)
|
abstract
int
|
size()
|
abstract
Collection<V>
|
values()
|
|
Public Constructors
public
FileMetaData
()
Create a new instance, without setting any fields
If an ID is not set, it will be auto-generated by the service
public
FileMetaData
(String id)
Create a new instance, and set the id of the file
Parameters
id |
- the _id of the new file meta data
|
Public Methods
public
String
getDownloadURL
()
public
String
getFileName
()
public
String
getMimetype
()
public
String
getUploadUrl
()
public
boolean
isPublic
()
public
void
setDownloadURL
(String downloadURL)
public
void
setFileName
(String fileName)
public
void
setId
(String id)
public
void
setMimetype
(String mimetype)
public
void
setPublic
(boolean isPublic)
public
void
setSize
(long size)
public
void
setUploadUrl
(String uploadUrl)