public class LocationUtil
extends java.lang.Object
URL object.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSPATH_SCHEME
Scheme name for a classpath resource
|
static java.lang.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 java.net.URL |
urlForResource(java.lang.String location)
Converts a string describing the location of a resource into a URL object.
|
public static final java.lang.String SCHEME_PATTERN
public static final java.lang.String CLASSPATH_SCHEME
public static java.net.URL urlForResource(java.lang.String location)
throws java.net.MalformedURLException,
java.io.FileNotFoundException
location - String describing the locationlocationjava.net.MalformedURLException - if location is not a syntatically
valid URLjava.io.FileNotFoundException - if location specifies a non-existent
classpath resourcejava.lang.NullPointerException - if location is nullCopyright © 2010 - 2023 Adobe. All Rights Reserved