public class ClasspathUrlFinder extends Object
| Constructor and Description |
|---|
ClasspathUrlFinder() |
| Modifier and Type | Method and Description |
|---|---|
static URL |
findClassBase(Class clazz)
Find the classpath for the particular class
|
static URL[] |
findClassPaths()
Uses the java.class.path system property to obtain a list of URLs that represent the CLASSPATH
|
static URL[] |
findClassPaths(String... paths)
Uses the java.class.path system property to obtain a list of URLs that represent the CLASSPATH
paths is used as a filter to only include paths that have the specific relative file within it
|
static URL |
findResourceBase(String baseResource)
Find the classpath URL for a specific classpath resource.
|
static URL |
findResourceBase(String baseResource,
ClassLoader loader)
Find the classpath URL for a specific classpath resource.
|
static URL[] |
findResourceBases(String baseResource)
Find the classpath URLs for a specific classpath resource.
|
static URL[] |
findResourceBases(String baseResource,
ClassLoader loader)
Find the classpath URLs for a specific classpath resource.
|
public static URL[] findResourceBases(String baseResource, ClassLoader loader)
baseResource - public static URL[] findResourceBases(String baseResource)
baseResource - public static URL findResourceBase(String baseResource)
baseResource - public static URL findResourceBase(String baseResource, ClassLoader loader)
baseResource - loader - public static URL findClassBase(Class clazz)
clazz - public static URL[] findClassPaths()
public static URL[] findClassPaths(String... paths)
paths - comma list of files that should exist in a particular pathCopyright © 2019. All Rights Reserved.