Package java.net
Interface URLStreamHandlerFactory
-
- All Known Implementing Classes:
OkUrlFactory
public interface URLStreamHandlerFactoryDefines a factory which creates anURLStreamHandlerfor a specified protocol. It is used by the classURL.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URLStreamHandlercreateURLStreamHandler(String protocol)Creates a newURLStreamHandlerinstance for the givenprotocol.
-
-
-
Method Detail
-
createURLStreamHandler
URLStreamHandler createURLStreamHandler(String protocol)
Creates a newURLStreamHandlerinstance for the givenprotocol.- Parameters:
protocol- the protocol for which a handler is needed.- Returns:
- the created handler.
-
-