android.content.res
Class AssetFileDescriptor
java.lang.Object
android.content.res.AssetFileDescriptor
- All Implemented Interfaces:
- Parcelable
public class AssetFileDescriptor
- extends java.lang.Object
- implements Parcelable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 java.io.FileDescriptor getFileDescriptor()
getStartOffset
public long getStartOffset()
getLength
public long getLength()
getDeclaredLength
public long getDeclaredLength()
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
createInputStream
public java.io.FileInputStream createInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
createOutputStream
public java.io.FileOutputStream createOutputStream()
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.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-2010. All Rights Reserved.