| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.ClassPathLoader
Core of the bytecode analyzer. It loads classes from a given classpath.
| Nested Class Summary | |
| static interface | ClassPathLoader.FileLoaderthe interface to implement to look up for specific resources | 
| Field Summary | |
| static ClassPathLoader.FileLoader | NULL_LOADER | 
| Constructor Summary | |
| ClassPathLoader(java.io.File[] entries)create a new instance with a given set of urls | |
| ClassPathLoader(java.lang.String classPath)create a new instance with a given classpath. | |
| ClassPathLoader(java.lang.String[] entries)create a new instance with a given set of urls. | |
| Method Summary | |
| static java.io.InputStream | getCachedStream(java.io.InputStream is)useful methods to read the whole input stream in memory so that it can be accessed faster. | 
|  java.util.Hashtable | getClasses()return the whole set of classes in the classpath. | 
|  java.util.Enumeration | loaders() | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final ClassPathLoader.FileLoader NULL_LOADER
| Constructor Detail | 
public ClassPathLoader(java.lang.String classPath)
classPath - the classpath to load all the classes from.public ClassPathLoader(java.lang.String[] entries)
entries - valid file urls (either .jar, .zip or directory)public ClassPathLoader(java.io.File[] entries)
entries - file urls to look for classes (.jar, .zip or directory)| Method Detail | 
public java.util.Enumeration loaders()
public java.util.Hashtable getClasses()
                               throws java.io.IOException
java.io.IOException
public static java.io.InputStream getCachedStream(java.io.InputStream is)
                                           throws java.io.IOException
java.io.IOException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||