public class URLStreamHandlerFactoryInstaller extends Object
This class provides the capability to stack any number of factories - each factory having precedence over the last one.
Thus, when querying for a URL protocol handler all factories will be asked in turn (from the newest one to the older one) until a stream handler is obtained.
Contains some code from Eclipse Framework class.
Modifier and Type | Class and Description |
---|---|
static class |
URLStreamHandlerFactoryInstaller.FactoryStack |
Modifier and Type | Method and Description |
---|---|
static URLStreamHandlerFactoryInstaller.FactoryStack |
getStack()
Get the underlying stack.
|
static void |
installURLStreamHandlerFactory(URLStreamHandlerFactory shf) |
static void |
resetURLStreamHandlers() |
static void |
uninstallURLStreamHandlerFactory() |
static void |
uninstallURLStreamHandlerFactory(URLStreamHandlerFactory shf) |
public static void installURLStreamHandlerFactory(URLStreamHandlerFactory shf)
public static void uninstallURLStreamHandlerFactory()
public static void uninstallURLStreamHandlerFactory(URLStreamHandlerFactory shf)
public static void resetURLStreamHandlers()
public static URLStreamHandlerFactoryInstaller.FactoryStack getStack()
This should not be used to register/unregister factories (since it is not synchronized). To install / uninstall factories use the static method of that class.
Copyright © 2015 Nuxeo SA. All rights reserved.