public class ClassPathUtils extends Object
| Constructor and Description |
|---|
ClassPathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendToSystemPath(URL path)
Appends a directory or jar to the system class loader.
|
static Class<?> |
defineClass(ClassLoader loader,
InputStream inputStream) |
static URL |
getClassFile(Class<?> clazz)
Get the actual classpath resource location for a class
|
static URL |
getClassPathFor(Class<?> clazz)
Returns the path for the jar or directory that contains a given java class.
|
public static URL getClassPathFor(Class<?> clazz)
clazz - the class whose classpath entry needs to be located.public static URL getClassFile(Class<?> clazz)
clazz - the class whose .class file must be located.public static void appendToSystemPath(URL path)
path - the url to append to the system class loaderpublic static Class<?> defineClass(ClassLoader loader, InputStream inputStream)
Copyright © 2017 Electronic Arts Inc. All rights reserved.