Java android.content.res AssetFileDescriptor fields, constructors, methods, implement or subclass

Example usage for Java android.content.res AssetFileDescriptor fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.content.res AssetFileDescriptor.

The text is from its open source code.

Field

longUNKNOWN_LENGTH
Length used with #AssetFileDescriptor(ParcelFileDescriptor,long,long) and #getDeclaredLength when a length has not been declared.

Constructor

AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, long length)
Create a new AssetFileDescriptor from the given values.

Method

voidclose()
Convenience for calling getParcelFileDescriptor().close().
FileInputStreamcreateInputStream()
Create and return a new auto-close input stream for this asset.
longgetDeclaredLength()
Return the actual number of bytes that were declared when the AssetFileDescriptor was constructed.
FileDescriptorgetFileDescriptor()
Returns the FileDescriptor that can be used to read the data in the file.
longgetLength()
Returns the total number of bytes of this asset entry's data.
longgetStartOffset()
Returns the byte offset where this asset entry's data starts.