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 locationlocation
MalformedURLException
- if location
is not a syntatically
valid URLFileNotFoundException
- if location
specifies a non-existent
classpath resourceNullPointerException
- if location
is null
Copyright © 2005–2021 QOS.ch. All rights reserved.