android.content.res
Class AssetManager

java.lang.Object
  extended by android.content.res.AssetManager

public final class AssetManager
extends Object


Nested Class Summary
 class AssetManager.AssetInputStream
           
 
Field Summary
static int ACCESS_BUFFER
           
static int ACCESS_RANDOM
           
static int ACCESS_STREAMING
           
static int ACCESS_UNKNOWN
           
 
Method Summary
 void close()
           
protected  void finalize()
           
 String[] getLocales()
           
 String[] list(String path)
           
 InputStream open(String fileName)
           
 InputStream open(String fileName, int accessMode)
           
 AssetFileDescriptor openFd(String fileName)
           
 AssetFileDescriptor openNonAssetFd(int cookie, String fileName)
           
 AssetFileDescriptor openNonAssetFd(String fileName)
           
 XmlResourceParser openXmlResourceParser(int cookie, String fileName)
           
 XmlResourceParser openXmlResourceParser(String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS_UNKNOWN

public static final int ACCESS_UNKNOWN
See Also:
Constant Field Values

ACCESS_RANDOM

public static final int ACCESS_RANDOM
See Also:
Constant Field Values

ACCESS_STREAMING

public static final int ACCESS_STREAMING
See Also:
Constant Field Values

ACCESS_BUFFER

public static final int ACCESS_BUFFER
See Also:
Constant Field Values
Method Detail

close

public void close()

open

public final InputStream open(String fileName)
                       throws IOException
Throws:
IOException

open

public final InputStream open(String fileName,
                              int accessMode)
                       throws IOException
Throws:
IOException

openFd

public final AssetFileDescriptor openFd(String fileName)
                                 throws IOException
Throws:
IOException

list

public final String[] list(String path)
                    throws IOException
Throws:
IOException

openNonAssetFd

public final AssetFileDescriptor openNonAssetFd(String fileName)
                                         throws IOException
Throws:
IOException

openNonAssetFd

public final AssetFileDescriptor openNonAssetFd(int cookie,
                                                String fileName)
                                         throws IOException
Throws:
IOException

openXmlResourceParser

public final XmlResourceParser openXmlResourceParser(String fileName)
                                              throws IOException
Throws:
IOException

openXmlResourceParser

public final XmlResourceParser openXmlResourceParser(int cookie,
                                                     String fileName)
                                              throws IOException
Throws:
IOException

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

getLocales

public final String[] getLocales()


Copyright © 2008-2012. All Rights Reserved.