Class Handler
java.lang.Object
java.net.URLStreamHandler
com.github.marschall.memoryfilesystem.memory.Handler
URLStreamHandler that can resolve memory URLs.
This class will be instantiated by the JDK.
Users need to add @ com.github.marschall.memoryfilesystem to the
java.protocol.handler.pkgs system property (comma separated).
-Djava.protocol.handler.pkgs=com.github.marschall.memoryfilesystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InetAddressprotected booleanhostsEqual(URL u1, URL u2) protected URLConnectionopenConnection(URL url) protected URLConnectionopenConnection(URL url, Proxy proxy) Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, hashCode, parseURL, sameFile, setURL, setURL, toExternalForm
-
Constructor Details
-
Handler
public Handler()Default constructor to be called by JDK classes.
-
-
Method Details
-
openConnection
- Specified by:
openConnectionin classURLStreamHandler- Throws:
IOException
-
openConnection
- Overrides:
openConnectionin classURLStreamHandler- Throws:
IOException
-
hostsEqual
- Overrides:
hostsEqualin classURLStreamHandler
-
getHostAddress
- Overrides:
getHostAddressin classURLStreamHandler
-