- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.network.NetManager
-
public class NetManager extends Object
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interface
NetManager.HandlerSetter
-
字段概要
字段 修饰符和类型 字段 说明 static Class<?>
URLStreamHandler$class
static Class<?>
URLStreamHandlerProvider$class
-
构造器概要
构造器 构造器 说明 NetManager()
-
方法概要
修饰符和类型 方法 说明 static URLStreamHandler
getHandler(@NotNull URL url)
static void
install(boolean b)
static void
main(String[] args)
static boolean
registerProtocol(String protocol, URLStreamHandler handler)
static boolean
removeProtocol(String protocol, URLStreamHandler handler)
Remove protocol from URL NetWorkstatic void
setHandler(@NotNull URL url, @NotNull URLStreamHandler handler)
-
-
-
方法详细资料
-
getHandler
public static URLStreamHandler getHandler(@NotNull @NotNull URL url)
-
setHandler
public static void setHandler(@NotNull @NotNull URL url, @NotNull @NotNull URLStreamHandler handler)
-
install
public static void install(boolean b)
-
removeProtocol
public static boolean removeProtocol(String protocol, URLStreamHandler handler)
Remove protocol from URL NetWork- 参数:
protocol
- The target protocolhandler
- The target handler- 返回:
- true if success to remove protocol
- 从以下版本开始:
- 2.12
-
registerProtocol
public static boolean registerProtocol(String protocol, URLStreamHandler handler)
-
-