Package com.iizix.util.xjar
Class XJarURLStreamHandlerFactory
java.lang.Object
com.iizix.util.xjar.XJarURLStreamHandlerFactory
- All Implemented Interfaces:
- URLStreamHandlerFactory
This class installs the iiziLink file system URL stream handler allowing files to be cached in-memory and not locked on the local file system.
- Author:
- Christopher Mindus
- Field SummaryFields
- Method SummaryModifier and TypeMethodDescription- createURLStreamHandler- (String protocol) Creates the URL stream handler for the protocol "xjar".- static XJarURLStreamHandlerFactoryReturns an initiated instance of the Jar URL stream handler factory.- static voidInstall the IIZI URL support for XJar files.
- Field Details- DEBUGpublic static boolean DEBUGDebug flag, default false.
 
- Method Details- getInstanceReturns an initiated instance of the Jar URL stream handler factory. This is the only instance of the factory.
- installSupportpublic static void installSupport()Install the IIZI URL support for XJar files.
- createURLStreamHandlerCreates the URL stream handler for the protocol "xjar".- Specified by:
- createURLStreamHandlerin interface- URLStreamHandlerFactory
- Returns:
- the XJarURLStreamHandler or null if the protocol is not "xjar".