|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.weaver.io.ClassPathLoader
public class ClassPathLoader
Loads a Class from the ClassPath.
| Constructor Summary | |
|---|---|
ClassPathLoader()
Creates a ClassPathLoader using the default ClassLoader as its underlying loader. |
|
ClassPathLoader(java.lang.ClassLoader loader)
Create a ClassPathLoader with the given underlying class loader |
|
| Method Summary | |
|---|---|
byte[] |
readClass(java.lang.String className)
Finds a class in the Readers space and loads all the bytes of the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPathLoader()
public ClassPathLoader(java.lang.ClassLoader loader)
loader - A ClassLoader instance to use.| Method Detail |
|---|
public byte[] readClass(java.lang.String className)
throws ClassNotFoundException,
java.io.IOException
ClassLoader
readClass in interface ClassLoaderclassName - the fully qualified file name using /'s as
separators. eg com/package/Name.class
ClassNotFoundException - If the given class can not be found.
java.io.IOException - On IO Error whilst reading class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||