Package com.iizix.util.xjar
Class XJarURLStreamHandlerFactory
- java.lang.Object
- com.iizix.util.xjar.XJarURLStreamHandlerFactory
 
- All Implemented Interfaces:
- java.net.URLStreamHandlerFactory
 - public class XJarURLStreamHandlerFactory extends java.lang.Object implements java.net.URLStreamHandlerFactoryThis 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- Fields - Modifier and Type - Field - Description - static boolean- DEBUGDebug flag, default false.
 - Method Summary- All Methods Static Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - java.net.URLStreamHandler- createURLStreamHandler(java.lang.String protocol)Creates the URL stream handler for the protocol "xjar".- static XJarURLStreamHandlerFactory- getInstance()Returns an initiated instance of the Jar URL stream handler factory.- static void- installSupport()Install the iizi URL support for XJar files.
 
- Method Detail- getInstance- public static XJarURLStreamHandlerFactory 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- public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol) Creates the URL stream handler for the protocol "xjar".- Specified by:
- createURLStreamHandlerin interface- java.net.URLStreamHandlerFactory
- Returns:
- the XJarURLStreamHandler or null if the protocol is not "xjar".