| java.lang.Object java.net.URLStreamHandler gnu.text.ResourceStreamHandler
ResourceStreamHandler | public class ResourceStreamHandler extends URLStreamHandler (Code) | | Handler for
"class-resource:" URLs.
These are "indirect URLs" implemented using ClassLoader.getResource().
Their syntax is: either:
class-resource:/PACKAGE/CLASS or
class-resource:/CLASS or
class-resource:/PACKAGE/RESOURCE or
class-resource:/RESOURCE .
The former two are "base URLs" which need to be resolved.
The latter two are resolved resource names.
|
CLASS_RESOURCE_URI_PREFIX | final public static String CLASS_RESOURCE_URI_PREFIX(Code) | | A special URI-scheme for accessing resources relative to a ClassLoader.
The resource is found using ClassLoader's getResource method.
The actual ClassLoader is found using getClassLoaderForURI.
|
CLASS_RESOURCE_URI_PREFIX_LENGTH | final public static int CLASS_RESOURCE_URI_PREFIX_LENGTH(Code) | | The length of CLASS_RESOURCE_URI_PREFIX, including ":/".
|
Methods inherited from java.net.URLStreamHandler | protected boolean equals(URL u1, URL u2)(Code)(Java Doc) protected int getDefaultPort()(Code)(Java Doc) protected synchronized InetAddress getHostAddress(URL u)(Code)(Java Doc) protected int hashCode(URL u)(Code)(Java Doc) protected boolean hostsEqual(URL u1, URL u2)(Code)(Java Doc) abstract protected URLConnection openConnection(URL u) throws IOException(Code)(Java Doc) protected URLConnection openConnection(URL u, Proxy p) throws IOException(Code)(Java Doc) protected void parseURL(URL u, String spec, int start, int limit)(Code)(Java Doc) protected boolean sameFile(URL u1, URL u2)(Code)(Java Doc) protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)(Code)(Java Doc) protected void setURL(URL u, String protocol, String host, int port, String file, String ref)(Code)(Java Doc) protected String toExternalForm(URL u)(Code)(Java Doc)
|
|
|