|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 * @param className the name of the class to find * @return byte[] the bytecode for the class * @throws IOException if a problem arises while loading the bytecode * @throws ClassNotFoundException if the class definition cannot be found |
java.lang.String |
getSupportedLoadingScheme()
Returns the supported loading scheme |
java.io.InputStream |
openClass(java.lang.String className)
Open class data. |
Method Detail |
public java.lang.String getSupportedLoadingScheme()
public 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 occurspublic byte[] getClassBytes(java.lang.String className) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public 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 |