public class Handler extends MemoryURLStreamHandler
MemoryURLStreamHandler
. This class is used
for handler registration with the "java.protocol.handler.pkgs"
system
property.Modifier and Type | Class and Description |
---|---|
static class |
Handler.Provider |
idToData
Constructor and Description |
---|
Handler() |
Modifier and Type | Method and Description |
---|---|
protected URLConnection |
openConnection(URL url) |
createURL, getData
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
protected URLConnection openConnection(URL url) throws IOException
openConnection
in class URLStreamHandler
MalformedURLException
- If the provided URL
specifies a
protocol that is not "memory"
, or a host that is not
null
or empty.IOException
- If no data is registered for the provided URL
,
or if an I/O error occurs while opening the connection.Copyright © 2019 LibJ. All rights reserved.