- 3
- 0
- 约3.69千字
- 约 16页
- 2017-09-10 发布于广东
- 举报
第十五章 网络编程 本章内容 URL URL(Uniform Resource Locator)----统一资源定位器,表示Internet上某一资源的地址。 URL组成: 协议名和资源名 protocol:resourceName URL举例: / /home/welcome.html /developers/ .URL类 常用构造方法 public URL(String spec); URL u1 = new URL(“/home/”); public URL(URL context, String spec); URL u2 = new URL(u1, “welcome.html”); public URL(String protocol, String host, String file); URL u3 = new URL(“http”, “”, “developers/index.html” ); public URL (String protocol, String host, int port, String file); URL u4 = new URL(“http”, “”, 80, “developers/index.html” ); URL类应用举例(1) import java.io.*; import .*; public class
您可能关注的文档
最近下载
- 《世界的人口》地理授课课件.pptx VIP
- 组建小型办公网络.ppt VIP
- 小学五年级上册劳动教案全册(2026学年).docx VIP
- 中国癫痫持续状态急救指南(2026版).docx
- FusionServer 2288H V6 服务器 技术白皮书 04.pdf VIP
- 《大型输水管道隐患检测及风险评估技术规范》(DB11T 2559-2026).docx VIP
- 70MW_280MWh储能系统损失计算书.docx VIP
- 遂宁市中心医院招聘卫生专业技术人才考试真题2025.docx VIP
- 春节习俗-传统节日.ppt VIP
- 美的尚蒸A6微波炉AG823LA6-NG系列使用说明书.pdf
原创力文档

文档评论(0)