Package com.iizix.util.memjar
Class MemoryJarURLStreamHandlerFactory
java.lang.Object
com.iizix.util.memjar.MemoryJarURLStreamHandlerFactory
- 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
- Method SummaryModifier and TypeMethodDescription- createURLStreamHandler- (String protocol) Creates the URL stream handler for the protocol "memjar".Returns an initiated instance of the Jar URL stream handler factory.- static voidInstall the iiziLink URL support for memjar files.
- 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 iiziLink URL support for memjar files.
- createURLStreamHandlerCreates the URL stream handler for the protocol "memjar".- Specified by:
- createURLStreamHandlerin interface- URLStreamHandlerFactory
- Returns:
- the MemoryJarURLStreamHandler or null if the protocol is not "memjar".