public class AssetFileDescriptor extends Object implements Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetFileDescriptor.AutoCloseInputStream |
static class |
AssetFileDescriptor.AutoCloseOutputStream |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<AssetFileDescriptor> |
CREATOR |
static long |
UNKNOWN_LENGTH |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
AssetFileDescriptor(ParcelFileDescriptor fd,
long startOffset,
long length) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileInputStream |
createInputStream() |
FileOutputStream |
createOutputStream() |
int |
describeContents() |
long |
getDeclaredLength() |
FileDescriptor |
getFileDescriptor() |
long |
getLength() |
ParcelFileDescriptor |
getParcelFileDescriptor() |
long |
getStartOffset() |
String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public static final long UNKNOWN_LENGTH
public static final Parcelable.Creator<AssetFileDescriptor> CREATOR
public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, long length)
public ParcelFileDescriptor getParcelFileDescriptor()
public FileDescriptor getFileDescriptor()
public long getStartOffset()
public long getLength()
public long getDeclaredLength()
public void close()
throws IOException
IOExceptionpublic FileInputStream createInputStream() throws IOException
IOExceptionpublic FileOutputStream createOutputStream() throws IOException
IOExceptionpublic int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel out, int flags)
writeToParcel in interface ParcelableCopyright © 2008-2013. All Rights Reserved.