# Print output for @column tags ?> InMemoryDexClassLoader - Android SDK | Android Developers

Most visited


Recently visited


InMemoryDexClassLoader

public final class InMemoryDexClassLoader
extends BaseDexClassLoader

java.lang.Object
   ↳ java.lang.ClassLoader
     ↳ dalvik.system.BaseDexClassLoader
       ↳ dalvik.system.InMemoryDexClassLoader


A ClassLoader implementation that loads classes from a buffer containing a DEX file. This can be used to execute code that has not been written to the local file system.

Summary


Public constructors

InMemoryDexClassLoader(ByteBuffer[] dexBuffers, String librarySearchPath, ClassLoader parent)

Create an in-memory DEX class loader with the given dex buffers.

InMemoryDexClassLoader(ByteBuffer[] dexBuffers, ClassLoader parent)

Create an in-memory DEX class loader with the given dex buffers.

InMemoryDexClassLoader(ByteBuffer dexBuffer, ClassLoader parent)

Creates a new in-memory DEX class loader.

Inherited methods

Public constructors


InMemoryDexClassLoader

public InMemoryDexClassLoader (ByteBuffer[] dexBuffers, 
                String librarySearchPath, 
                ClassLoader parent)

Create an in-memory DEX class loader with the given dex buffers.

Parameters
dexBuffers ByteBuffer: array of buffers containing DEX files between buffer.position() and buffer.limit().

librarySearchPath String: the list of directories containing native libraries, delimited by File.pathSeparator; may be null

parent ClassLoader: the parent class loader for delegation.

InMemoryDexClassLoader

public InMemoryDexClassLoader (ByteBuffer[] dexBuffers, 
                ClassLoader parent)

Create an in-memory DEX class loader with the given dex buffers.

Parameters
dexBuffers ByteBuffer: array of buffers containing DEX files between buffer.position() and buffer.limit().

parent ClassLoader: the parent class loader for delegation.

InMemoryDexClassLoader

public InMemoryDexClassLoader (ByteBuffer dexBuffer, 
                ClassLoader parent)

Creates a new in-memory DEX class loader.

Parameters
dexBuffer ByteBuffer: buffer containing DEX file contents between buffer.position() and buffer.limit().

parent ClassLoader: the parent class loader for delegation.

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.