| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSPATH_SCHEME
Scheme name for a classpath resource
|
static String |
SCHEME_PATTERN
Regex pattern for a URL scheme (reference RFC 2396 section 3)
|
| Constructor and Description |
|---|
LocationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static URL |
urlForResource(String location)
Converts a string describing the location of a resource into a URL object.
|
public static final String SCHEME_PATTERN
public static final String CLASSPATH_SCHEME
public static URL urlForResource(String location) throws MalformedURLException, FileNotFoundException
location - String describing the locationlocationMalformedURLException - if location is not a syntatically
valid URLFileNotFoundException - if location specifies a non-existent
classpath resourceNullPointerException - if location is nullCopyright © 2005–2017 QOS.ch. All rights reserved.