| Modifier and Type | Field and Description |
|---|---|
| private static GenericURLStreamHandlerFactory | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final synchronized URLStreamHandler | createURLStreamHandler(final String
the protocol (" protocol)ftp",
"http", "nntp", etc.).Implements java. URLStreamHandler instance with the specified
protocol.
|
| public final synchronized URLStreamHandler | getHandler(final String protocol)
Returns the |
| public static synchronized GenericURLStreamHandlerFactory | register()
Returns the singleton instance of the registered GenericURLStreamHandlerFactory or null if registration was not successful. |
| public final synchronized URLStreamHandler | Returns: the previous sethandler, or null if none was set.Sets the |
| factory | back to summary |
|---|---|
| private static GenericURLStreamHandlerFactory factory | |
| protocolHandlers | back to summary |
|---|---|
| private final Map<String, URLStreamHandler> protocolHandlers | |
| GenericURLStreamHandlerFactory | back to summary |
|---|---|
| private GenericURLStreamHandlerFactory() | |
| createURLStreamHandler | back to summary |
|---|---|
| public final synchronized URLStreamHandler createURLStreamHandler(final String protocol) Implements java. Doc from java. Creates a new
| |
| getHandler | back to summary |
|---|---|
| public final synchronized URLStreamHandler getHandler(final String protocol) Returns the | |
| register | back to summary |
|---|---|
| public static synchronized GenericURLStreamHandlerFactory register() Returns the singleton instance of the registered GenericURLStreamHandlerFactory or null if registration was not successful. Registration is only performed once. | |
| setHandler | back to summary |
|---|---|
| public final synchronized URLStreamHandler setHandler(final String protocol, final URLStreamHandler handler) Sets the
| |