public class FileAttachment
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<FileAttachment> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
|
FileAttachment(java.io.File file,
java.lang.String mimeType) |
protected |
FileAttachment(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
java.io.File |
getFile() |
boolean |
isImage() |
boolean |
isVideo() |
org.json.JSONObject |
toJSON() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<FileAttachment> CREATOR
public FileAttachment(java.io.File file,
java.lang.String mimeType)
protected FileAttachment(android.os.Parcel in)
public org.json.JSONObject toJSON()
throws org.json.JSONException,
java.io.IOException
org.json.JSONExceptionjava.io.IOExceptionpublic java.io.File getFile()
public boolean isImage()
public boolean isVideo()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable