handler在这里是URLStreamHandler 类的一个引用,你仔细看源码的话会发现:
static Hashtable handlers = new Hashtable();
URLStreamHandler handler = (URLStreamHandler)handlers.get(protocol);
if (handler != null) {
handlers.put(protocol, handler);
}
if (handler == null) {
handler = context.handler;
}
|