public class ClassLoaderWrapper
extends java.lang.Object
Description:
Title:首亨软件 - TSS/CRM等
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Class<?> |
classForName(java.lang.String name)
Find a class on the classpath (or die trying)
|
java.lang.Class<?> |
classForName(java.lang.String name,
java.lang.ClassLoader classLoader)
Find a class on the classpath, starting with a specific classloader (or die trying)
|
java.io.InputStream |
getResourceAsStream(java.lang.String resource)
Get a resource from the classpath
|
java.io.InputStream |
getResourceAsStream(java.lang.String resource,
java.lang.ClassLoader classLoader)
Get a resource from the classpath, starting with a specific class loader
|
java.net.URL |
getResourceAsURL(java.lang.String resource)
Get a resource as a URL using the current class path
|
java.net.URL |
getResourceAsURL(java.lang.String resource,
java.lang.ClassLoader classLoader)
Get a resource from the classpath, starting with a specific class loader
|
public java.net.URL getResourceAsURL(java.lang.String resource)
resource - the resource to locatepublic java.net.URL getResourceAsURL(java.lang.String resource,
java.lang.ClassLoader classLoader)
resource - the resource to findclassLoader - the first classloader to trypublic java.io.InputStream getResourceAsStream(java.lang.String resource)
resource - the resource to findpublic java.io.InputStream getResourceAsStream(java.lang.String resource,
java.lang.ClassLoader classLoader)
resource - the resource to findclassLoader - the first class loader to trypublic java.lang.Class<?> classForName(java.lang.String name)
throws java.lang.ClassNotFoundException
name - the class to look forjava.lang.ClassNotFoundException - ClassNotFoundExceptionpublic java.lang.Class<?> classForName(java.lang.String name,
java.lang.ClassLoader classLoader)
throws java.lang.ClassNotFoundException
name - the class to look forclassLoader - the first classloader to tryjava.lang.ClassNotFoundException - ClassNotFoundException