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 | DEBUGDebug 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, toExternalFormpublic Handler()
Handler.public Handler(MemoryJarFile jarFile)
jarFile - The Jar file to use.public IJarFile getJarFile()
getJarFile in interface IJarURLStreamHandlernull if handler did not specify an IJarFile.protected URLConnection openConnection(URL url) throws IOException
MemoryJarURLConnection to the specified URL.openConnection in class URLStreamHandlerurl - The URL to which to connect.IOExceptionPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.