android.content.res
Class AssetFileDescriptor
java.lang.Object
android.content.res.AssetFileDescriptor
- All Implemented Interfaces:
- Parcelable
public class AssetFileDescriptor
- extends Object
- implements Parcelable
UNKNOWN_LENGTH
public static final long UNKNOWN_LENGTH
- See Also:
- Constant Field Values
CREATOR
public static final Parcelable.Creator<AssetFileDescriptor> CREATOR
AssetFileDescriptor
public AssetFileDescriptor(ParcelFileDescriptor fd,
long startOffset,
long length)
getParcelFileDescriptor
public ParcelFileDescriptor getParcelFileDescriptor()
getFileDescriptor
public FileDescriptor getFileDescriptor()
getStartOffset
public long getStartOffset()
getLength
public long getLength()
getDeclaredLength
public long getDeclaredLength()
close
public void close()
throws IOException
- Throws:
IOException
createInputStream
public FileInputStream createInputStream()
throws IOException
- Throws:
IOException
createOutputStream
public FileOutputStream createOutputStream()
throws IOException
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
describeContents
public int describeContents()
- Specified by:
describeContents
in interface Parcelable
writeToParcel
public void writeToParcel(Parcel out,
int flags)
- Specified by:
writeToParcel
in interface Parcelable
Copyright © 2008-2012. All Rights Reserved.