android.content.res
Class AssetFileDescriptor

java.lang.Object
  extended by android.content.res.AssetFileDescriptor
All Implemented Interfaces:
Parcelable

public class AssetFileDescriptor
extends Object
implements Parcelable


Nested Class Summary
static class AssetFileDescriptor.AutoCloseInputStream
           
static class AssetFileDescriptor.AutoCloseOutputStream
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<AssetFileDescriptor> CREATOR
           
static long UNKNOWN_LENGTH
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, long length)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_LENGTH

public static final long UNKNOWN_LENGTH
See Also:
Constant Field Values

CREATOR

public static final Parcelable.Creator<AssetFileDescriptor> CREATOR
Constructor Detail

AssetFileDescriptor

public AssetFileDescriptor(ParcelFileDescriptor fd,
                           long startOffset,
                           long length)
Method Detail

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.