Package java.net
Interface URLStreamHandlerFactory
- All Known Implementing Classes:
OkHttpClient
public interface URLStreamHandlerFactory
Defines a factory which creates an
URLStreamHandler for a specified
protocol. It is used by the class URL.-
Method Summary
Modifier and Type Method Description URLStreamHandlercreateURLStreamHandler(String protocol)Creates a newURLStreamHandlerinstance for the givenprotocol.
-
Method Details
-
createURLStreamHandler
Creates a newURLStreamHandlerinstance for the givenprotocol.- Parameters:
protocol- the protocol for which a handler is needed.- Returns:
- the created handler.
-