|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassFinderInterface
This interface defines services for publicly load class bytecode.
The JDK12ClassFileFinder class implements this interface emulating the
Java 2 system class loader behaviour.
| Method Summary | |
|---|---|
java.io.File |
findClassFile(java.lang.String className)
This method finds the class file - in a way depending on the particular implementation |
byte[] |
getClassBytes(java.lang.String className)
Returns a byte array with the bytecode for the class |
java.lang.String |
getSupportedLoadingScheme()
Returns the supported loading scheme |
java.io.InputStream |
openClass(java.lang.String className)
Open class data. |
| Method Detail |
|---|
java.lang.String getSupportedLoadingScheme()
java.io.InputStream openClass(java.lang.String className)
throws java.io.IOException,
java.lang.ClassNotFoundException
className - the name of the class to find
java.lang.ClassNotFoundException - if the class is not found
java.io.IOException - if an I/O Exception occurs
byte[] getClassBytes(java.lang.String className)
throws java.io.IOException,
java.lang.ClassNotFoundException
className - the name of the class to find
java.io.IOException - if a problem arises while loading the bytecode
java.lang.ClassNotFoundException - if the class definition cannot be found
java.io.File findClassFile(java.lang.String className)
throws java.io.IOException,
java.lang.ClassNotFoundException
className - the name of the class to find
java.lang.ClassNotFoundException - if the class is not found
java.io.IOException - if an I/O Exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||