org.arakhne.vmutil.resource
Class Handler
java.lang.Object
java.net.URLStreamHandler
org.arakhne.vmutil.resource.Handler
public class Handler
- extends URLStreamHandler
The class Handler is supporting resource protocol
for URL streams. This stream protocol
handler knows how to make a connection for "resource" protocol.
In most cases, an instance of a URLStreamHandler
subclass is not created directly by an application. Rather, the
first time a protocol name is encountered when constructing a
URL, the appropriate stream protocol handler is
automatically loaded.
To use this factory, invoke the following code only ONCE time:
URL.setURLStreamHandlerFactory(new ResourceURLStreamHandlerFactory());.
- Since:
- 6.0
- Version:
- 6.3 (rev:285) 2011-10-14 12:02:41
- Author:
- Stéphane GALLAND
- See Also:
URLStreamHandler,
HandlerFactory- Maven Group Id:
- org.arakhne.afc
- Maven Artifact Id:
- arakhneVmutils
| Methods inherited from class java.net.URLStreamHandler |
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Handler
public Handler()
openConnection
protected URLConnection openConnection(URL url)
throws IOException
-
- Specified by:
openConnection in class URLStreamHandler
- Throws:
IOException
Copyright © 2006-2011 Arakhnê.org Consortium. All rights reserved under LGPL license terms.