org.apache.tools.ant.taskdefs.optional.sitraka.bytecode
public class ClassPathLoader extends Object
Nested Class Summary | |
---|---|
interface | ClassPathLoader.FileLoader the interface to implement to look up for specific resources |
Field Summary | |
---|---|
static ClassPathLoader.FileLoader | NULL_LOADER |
Constructor Summary | |
---|---|
ClassPathLoader(String classPath)
create a new instance with a given classpath. | |
ClassPathLoader(String[] entries)
create a new instance with a given set of urls. | |
ClassPathLoader(File[] entries)
create a new instance with a given set of urls |
Method Summary | |
---|---|
static InputStream | getCachedStream(InputStream is)
useful methods to read the whole input stream in memory so that
it can be accessed faster. |
Hashtable | getClasses()
return the whole set of classes in the classpath. |
Enumeration | loaders() |
Parameters: classPath the classpath to load all the classes from.
Parameters: entries valid file urls (either .jar, .zip or directory)
Parameters: entries file urls to look for classes (.jar, .zip or directory)
Returns: the hashtable containing ALL classes that are found in the given classpath. Note that the first entry of a given classname will shadow classes with the same name (as a classloader does)
Returns: the set of FileLoader loaders matching the given classpath.