java.lang.Object | |
↳ | com.kinvey.android.AndroidMimeTypeFinder |
Uses Android features to determine the MIME type of a provided file.
There are various `getMimeType(...)` methods, which all take various parameters as well as aFileMetaData
object.
When the mimetype is found, it will be set in the provided FileMetaData
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AndroidMimeTypeFinder() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
getMimeType(FileMetaData metaData)
Calculate MimeType from a file name
| ||||||||||
void |
getMimeType(FileMetaData meta, File file)
Calculate MimeType from a File object
| ||||||||||
void |
getMimeType(FileMetaData meta, InputStream stream)
Calculate MimeType from an InputStream
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Calculate MimeType from a file name
metaData | the FileMetaData to populate, also containing the filename (with file extension)
|
---|
Calculate MimeType from a File object
meta | the FileMetaData to populate |
---|---|
file | the file of the data |
Calculate MimeType from an InputStream
meta | the FileMetaData to populate |
---|---|
stream | the stream of the data |