Package com.jogamp.common.net
Class GenericURLStreamHandlerFactory
java.lang.Object
com.jogamp.common.net.GenericURLStreamHandlerFactory
- All Implemented Interfaces:
URLStreamHandlerFactory
-
Method Summary
Modifier and TypeMethodDescriptionfinal URLStreamHandlercreateURLStreamHandler(String protocol) final URLStreamHandlergetHandler(String protocol) Returns theprotocolhandler previously set viasetHandler(String, URLStreamHandler), or null if none was set.register()Returns the singleton instance of the registered GenericURLStreamHandlerFactory or null if registration was not successful.final URLStreamHandlersetHandler(String protocol, URLStreamHandler handler) Sets thehandlerforprotocol.
-
Method Details
-
setHandler
Sets thehandlerforprotocol.- Returns:
- the previous set
handler, or null if none was set.
-
getHandler
Returns theprotocolhandler previously set viasetHandler(String, URLStreamHandler), or null if none was set. -
createURLStreamHandler
- Specified by:
createURLStreamHandlerin interfaceURLStreamHandlerFactory
-
register
Returns the singleton instance of the registered GenericURLStreamHandlerFactory or null if registration was not successful.Registration is only performed once.
-