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

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

Introduction

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

The text is from its open source code.

Field

intACCESS_STREAMING
Mode for #open(String,int) : Read sequentially, with an occasional forward seek.
intACCESS_BUFFER
Mode for #open(String,int) : Attempt to load contents into memory, for fast small reads.

Constructor

AssetManager()
Create a new AssetManager containing only the basic system assets.

Method

intaddAssetPath(String path)
voidclose()
Close this asset manager.
ClassgetClass()
Returns the runtime class of this Object .
String[]list(@NonNull String path)
Return a String array of all the assets at the given path.
InputStreamopen(@NonNull String fileName)
Open an asset using ACCESS_STREAMING mode.
InputStreamopen(@NonNull String fileName, int accessMode)
Open an asset using an explicit access mode, returning an InputStream to read its contents.
AssetFileDescriptoropenFd(@NonNull String fileName)
Open an uncompressed asset by mmapping it and returning an AssetFileDescriptor .
XmlResourceParseropenXmlResourceParser(int cookie, @NonNull String fileName)
Retrieve a parser for a compiled XML file.
XmlResourceParseropenXmlResourceParser(@NonNull String fileName)
Retrieve a parser for a compiled XML file.