Example usage for Java android.content.res AssetFileDescriptor fields, constructors, methods, implement or subclass
The text is from its open source code.
long | UNKNOWN_LENGTH Length used with #AssetFileDescriptor(ParcelFileDescriptor,long,long) and #getDeclaredLength when a length has not been declared. |
AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, long length) Create a new AssetFileDescriptor from the given values. |
void | close() Convenience for calling getParcelFileDescriptor().close() . |
FileInputStream | createInputStream() Create and return a new auto-close input stream for this asset. |
long | getDeclaredLength() Return the actual number of bytes that were declared when the AssetFileDescriptor was constructed. |
FileDescriptor | getFileDescriptor() Returns the FileDescriptor that can be used to read the data in the file. |
long | getLength() Returns the total number of bytes of this asset entry's data. |
long | getStartOffset() Returns the byte offset where this asset entry's data starts. |