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 Summary
Method Summary
Modifier and TypeMethodDescriptioncreateURLStreamHandler
(String protocol) Creates the URL stream handler for the protocol "xjar".static XJarURLStreamHandlerFactory
Returns an initiated instance of the Jar URL stream handler factory.static void
Install the IIZI URL support for XJar files.
Field Details
DEBUG
public static boolean DEBUGDebug flag, default false.
Method Details
getInstance
Returns an initiated instance of the Jar URL stream handler factory. This is the only instance of the factory.installSupport
public static void installSupport()Install the IIZI URL support for XJar files.createURLStreamHandler
Creates the URL stream handler for the protocol "xjar".- Specified by:
createURLStreamHandler
in interfaceURLStreamHandlerFactory
- Returns:
- the XJarURLStreamHandler or null if the protocol is not "xjar".