Example usage for Java android.content.res AssetManager fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ACCESS_STREAMING Mode for #open(String,int) : Read sequentially, with an occasional forward seek. |
int | ACCESS_BUFFER Mode for #open(String,int) : Attempt to load contents into memory, for fast small reads. |
AssetManager() Create a new AssetManager containing only the basic system assets. |
int | addAssetPath(String path) |
void | close() Close this asset manager. |
Class> | getClass() Returns the runtime class of this Object . |
String[] | list(@NonNull String path) Return a String array of all the assets at the given path. |
InputStream | open(@NonNull String fileName) Open an asset using ACCESS_STREAMING mode. |
InputStream | open(@NonNull String fileName, int accessMode) Open an asset using an explicit access mode, returning an InputStream to read its contents. |
AssetFileDescriptor | openFd(@NonNull String fileName) Open an uncompressed asset by mmapping it and returning an AssetFileDescriptor . |
XmlResourceParser | openXmlResourceParser(int cookie, @NonNull String fileName) Retrieve a parser for a compiled XML file. |
XmlResourceParser | openXmlResourceParser(@NonNull String fileName) Retrieve a parser for a compiled XML file. |