Package com.iizix.util.memjar
Class Handler
java.lang.Object
java.net.URLStreamHandler
com.iizix.util.memjar.Handler
- All Implemented Interfaces:
- IJarURLStreamHandler
The memory Jar 
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.
- Author:
- Christopher Mindus
- Field SummaryFields
- Constructor SummaryConstructorsConstructorDescription- Handler()uti Construct a new- Handler.- Handler- (MemoryJarFile jarFile) Handler construction for an open Memory Jar.
- Method SummaryModifier and TypeMethodDescriptionGets the IJarFile from the handler.- protected URLConnection- openConnection- (URL url) Open an- MemoryJarURLConnectionto the specified URL.- Methods inherited from class java.net.URLStreamHandler- equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
- Field Details- DEBUGpublic static boolean DEBUGDebug flag, default false.
 
- Constructor Details- Handlerpublic Handler()uti Construct a new- Handler.
- HandlerHandler construction for an open Memory Jar.- Parameters:
- jarFile- The Jar file to use.
 
 
- Method Details- getJarFileGets the IJarFile from the handler.- Specified by:
- getJarFilein interface- IJarURLStreamHandler
- Returns:
- The Jar file, or nullif handler did not specify an IJarFile.
 
- openConnectionOpen an- MemoryJarURLConnectionto the specified URL.- Specified by:
- openConnectionin class- URLStreamHandler
- Parameters:
- url- The- URLto which to connect.
- Throws:
- IOException