|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
com.gargoylesoftware.htmlunit.html.applets.AppletClassLoader
public class AppletClassLoader
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Class loader for loading applets.
Constructor Summary | |
---|---|
AppletClassLoader()
The constructor. |
Method Summary | |
---|---|
void |
addToClassPath(WebResponse webResponse)
Adds the content of specified WebResponse to the classpath for the applet. |
Class<?> |
loadClass(String name)
|
static String |
readClassName(byte[] bytes)
Reads the class name from the bytes of a .class file. |
static String |
readClassName(WebResponse webResponse)
Reads the class name from the bytes of a .class file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppletClassLoader()
Method Detail |
---|
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public void addToClassPath(WebResponse webResponse) throws IOException
webResponse
- the web response
IOException
- in case of problem working with the response contentpublic static String readClassName(WebResponse webResponse)
webResponse
- response containing the bytes the class
public static String readClassName(byte[] bytes)
bytes
- the class bytes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |