| 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
Converts a string describing the location of a resource into a URL object.
|
public static final StringSCHEME_PATTERN
public static final StringCLASSPATH_SCHEME
public static URLurlForResource(String location) throws MalformedURLException , FileNotFoundException
location - String describing the location
location
MalformedURLException - if
location is not a syntatically valid URL
FileNotFoundException - if
location specifies a non-existent classpath resource
NullPointerException - if
location is
null