public static enum ByteArrayClassLoader.PersistenceHandler extends Enum<ByteArrayClassLoader.PersistenceHandler>
ClassLoader.getResourceAsStream(String) method.| Enum Constant and Description |
|---|
LATENT
The latent persistence handler hides all class file representations and does not make them accessible
even before they are loaded.
|
MANIFEST
The manifest persistence handler retains all class file representations and makes them accessible.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract InputStream |
inputStream(String resourceName,
Map<String,byte[]> typeDefinitions)
Performs a lookup of an input stream for exposing a class file as a resource.
|
boolean |
isManifest()
Checks if this persistence handler represents manifest class file storage.
|
protected abstract byte[] |
lookup(String name,
Map<String,byte[]> typeDefinitions)
Performs a lookup of a class file by its name.
|
static ByteArrayClassLoader.PersistenceHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteArrayClassLoader.PersistenceHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteArrayClassLoader.PersistenceHandler MANIFEST
public static final ByteArrayClassLoader.PersistenceHandler LATENT
public static ByteArrayClassLoader.PersistenceHandler[] values()
for (ByteArrayClassLoader.PersistenceHandler c : ByteArrayClassLoader.PersistenceHandler.values()) System.out.println(c);
public static ByteArrayClassLoader.PersistenceHandler valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isManifest()
true if this persistence handler represents manifest class file storage.protected abstract byte[] lookup(String name, Map<String,byte[]> typeDefinitions)
name - The name of the class to be loaded.typeDefinitions - A map of fully qualified class names pointing to their binary representations.null if no such class is known.protected abstract InputStream inputStream(String resourceName, Map<String,byte[]> typeDefinitions)
resourceName - The resource name of the class to be exposed as its class file.typeDefinitions - A map of fully qualified class names pointing to their binary representations.null if no such resource is known.Copyright © 2014–2015. All rights reserved.