public interface URLStreamHandlerFactory
| java.net.URLStreamHandlerFactory |
该接口为 URL流协议处理程序定义了一个工厂。
它由 URL类用于为特定协议创建 URLStreamHandler 。
也可以看看:
公共方法(Public methods) |
|
|---|---|
abstract URLStreamHandler |
createURLStreamHandler(String protocol) 用指定的协议创建一个新的 |
URLStreamHandler createURLStreamHandler (String protocol)
用指定的协议创建一个新的 URLStreamHandler实例。
| 参数(Parameters) | |
|---|---|
protocol |
String: the protocol ("ftp", "http", "nntp", etc.). |
| 返回(Returns) | |
|---|---|
URLStreamHandler |
a URLStreamHandler for the specific protocol. |
也可以看看: