Package com.iizix.util.memjar
Class MemoryJarURLStreamHandlerFactory
- java.lang.Object
 - com.iizix.util.memjar.MemoryJarURLStreamHandlerFactory
 
- All Implemented Interfaces:
 java.net.URLStreamHandlerFactory
public class MemoryJarURLStreamHandlerFactory 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
 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URLStreamHandlercreateURLStreamHandler(java.lang.String protocol)Creates the URL stream handler for the protocol "memjar".static MemoryJarURLStreamHandlerFactorygetInstance()Returns an initiated instance of the Jar URL stream handler factory.static voidinstallSupport()Install the iiziLink URL support for memjar files.
Method Detail
getInstance
public static MemoryJarURLStreamHandlerFactory 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 iiziLink URL support for memjar files.
createURLStreamHandler
public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
Creates the URL stream handler for the protocol "memjar".- Specified by:
 createURLStreamHandlerin interfacejava.net.URLStreamHandlerFactory- Returns:
 - the MemoryJarURLStreamHandler or null if the protocol is not "memjar".