public class Handler extends URLStreamHandler
myspace
-protocol URLs.
The format is as for Java file
-protocol URLs,
except that all paths are absolute.
Like the file protocol handler, the host part is effectively
ignored and may be absent (along with its slashes).
So either of
myspace:/demo/messier.xml myspace://localhost/demo/messer.xmlwould references a file "messier.xml" in the "demo" directory under the home directory of the currently logged in user. Using ACR magic, if you're not logged in, a GUI popup window will prompt you to do so during resolution of such URLs.
Both input and output (but not from the same connection) are supported.
Constructor and Description |
---|
Handler()
No-arg constructor as required.
|
Modifier and Type | Method and Description |
---|---|
protected URLConnection |
openConnection(URL url) |
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
protected URLConnection openConnection(URL url) throws IOException
openConnection
in class URLStreamHandler
IOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.