AssetFileDescriptor

Class of android.content.res · AssetFileDescriptor.java · Android's reference

public class AssetFileDescriptor implements java.io.Closeable

A part of an open file: an asset, which the runtime copies out of the APK to a file first.

Fields

public static final long UNKNOWN_LENGTH = -1 source

Constructors

public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, long length) source

Methods

public ParcelFileDescriptor getParcelFileDescriptor() source
public FileDescriptor getFileDescriptor() source
public long getStartOffset() source
public long getLength() source
public long getDeclaredLength() source
public void close() throws IOException source
public FileInputStream createInputStream() throws IOException source
public FileOutputStream createOutputStream() throws IOException source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.