@Immutable
public final class ResourceURLHandler
extends URLStreamHandler
Allows a URL to specify a resource on the class path by using 'resource' as the protocol name. The resource path is put immediately after the colon; if this path begins with a slash, it is an absolute path.
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_PROTOCOL
Resource protocol.
|
Constructor and Description |
---|
ResourceURLHandler() |
Modifier and Type | Method and Description |
---|---|
protected URLConnection |
openConnection(URL url) |
public static final String RESOURCE_PROTOCOL
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.