public class Handler extends URLStreamHandler implements IJarURLStreamHandler
URLStreamHandler
.
This class must be named Handler
for the default system
handler search mechanism to function. Normally you will not use this class
directly; NpURLStreamHandlerFactory
documents how to
globally install memjar support.
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG
Debug flag, default false.
|
Constructor and Description |
---|
Handler()
uti
Construct a new
Handler . |
Handler(MemoryJarFile jarFile)
Handler construction for an open Memory Jar.
|
Modifier and Type | Method and Description |
---|---|
IJarFile |
getJarFile()
Gets the IJarFile from the handler.
|
protected URLConnection |
openConnection(URL url)
Open an
MemoryJarURLConnection to the specified URL. |
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
public Handler()
Handler
.public Handler(MemoryJarFile jarFile)
jarFile
- The Jar file to use.public IJarFile getJarFile()
getJarFile
in interface IJarURLStreamHandler
null
if handler did not specify an IJarFile.protected URLConnection openConnection(URL url) throws IOException
MemoryJarURLConnection
to the specified URL.openConnection
in class URLStreamHandler
url
- The URL
to which to connect.IOException
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.