Class Handler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- org.openstreetmap.josm.io.protocols.data.Handler
-
public class Handler extends URLStreamHandler
Protocol handler fordata:
URLs. This class must be named "Handler" and in a package "data" (fixed named convention)!See StackOverflow.
- Since:
- 10931
-
-
Constructor Summary
Constructors Constructor Description Handler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
install()
Installs protocol handler.protected URLConnection
openConnection(URL u)
-
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Constructor Detail
-
Handler
public Handler()
-
-
Method Detail
-
openConnection
protected URLConnection openConnection(URL u) throws IOException
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
install
public static void install()
Installs protocol handler.
-
-