⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 builder_course_111_1_gjbc.html

📁 Java应 用 教 程
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</td>

<td width="10" rowspan="3"><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" border="0" width="10" height="1">
</td>
</tr>

<tr>
<td colspan="3" align="left" valign="top">
<hr>正 文:<br>

<font class="a"><center><b>Java 中 的 URL 类</b></center><p align="right">作 者 : 清 华 大 学 教 授 : 王 克 宏<p><p>    
Java 语 言 是 运 用 于 网 络 环 境 的 一 种 编 程 语 言 , Java 的 程 序 要 能 在 网 络 上 的 不 同 地 方 运 行 , 这 样 就 要 求 Java 程 序 执 行 时 , 必 须 有 能 力 取 得 网 络 上 的 各 种 资 源 和 数 据 , 和 服 务 器 建 立 各 种 传 输 通 道 , 把 自 己 的 数 据 传 输 到 网 络 各 处 。 Java 为 我 们 提 供 了 强 有 力 的 网 络 功 能 , 也 正 是 由 于 它 的 强 大 的 网 络 功 能 的 支 持 , Java 才 得 到 大 家 如 此 的 青 睐 。 不 信 你 去 试 试 , 开 发 类 似 的 网 络 程 序 用 其 他 编 程 语 言 比 用 Java 复 杂 得 多 。<p>   
Java 所 提 供 的 网 络 功 能 可 以 分 为 三 类 : 用 URL 访 问 网 络 资 源 、 Socket 方 式 、 数 据 报 方 式 。 其 中 Socket 和 数 据 报 方 式 比 较 复 杂 , 我 们 只 介 绍 URL 的 有 关 内 容 。

<p><center><font COLOR="#FF8040" SIZE="+0"><b>Java 中 的 URL 类</b></font></center>
<p>   
URL 也 就 是 Uniform Resourse Locator ( 统 一 资 源 定 位 器 ) , 如 果 你 用 过 WWW 浏 览 器 , 一 定 知 道 URL 。 每 次 想 要 访 问 网 络 上 的 某 个 地 方 , 首 先 要 填 写 它 的 URL 。
顾 名 思 义 , URL 用 于 表 示 网 络 资 源 的 地 址 。 网 络 上 的 资 源 都 有 它 固 定 的 地 址 , 使 用 时 , 必 须 首 先 知 道 它 的 URL , 通 过 URL 指 定 的 方 法 获 取 网 络 资 源 。 网 络 资 源 的 URL 就 如 同 我 们 每 个 人 的 住 址 , 我 们 记 住 了 朋 友 的 住 址 才 能 登 门 拜 访 , 网 络 资 源 也 一 样 , 我 们 知 道 了 它 们 的 “ 住 址 ” 即 URL , 才 能 访 问 到 它 们 。 例 如 从 网 上 获 取 Java 开 发 工 具 , 我 们 曾 经 访 问 过 Sun 公 司 的 Java Web 网 点 , 它 的 URL 为 : http: // www.Javasoft.com , 从 这 里 你 可 以 看 到 许 多 与 Java 有 关 的 文 档 。
<p>






<center>



第1页 





<a href="builder_course_111_2_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_111_2_GJBC.html">第2页</a> 





<a href="builder_course_111_3_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_111_3_GJBC.html">第3页</a> 





<a href="builder_course_111_4_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_111_4_GJBC.html">第4页</a> 





<a href="builder_course_111_5_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_111_5_GJBC.html">第5页</a> 





<a href="builder_course_111_6_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_111_6_GJBC.html">第6页</a> 

<a href="builder_course_111_2_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_111_2_GJBC.html">下一页</a>

</center>
<p><hr>
</td>
</tr>

<tr>
<td width="400" align="left" valign="top"><br>


<b>参 考 文 章 : </b><br>

<font class="a">1. <a href="builder_course_112_1_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_112_1_GJBC.html">Java应 用 教 程 (八 )—— 例 外 处 理</a> ( 1998-09-02 )</font><br>

<font class="a">2. <a href="builder_course_110_1_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_110_1_GJBC.html">Java应 用 教 程 (六 )—— 终 于 动 起 来 了</a> ( 1998-07-03 )</font><br>

<font class="a">3. <a href="builder_course_109_1_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_109_1_GJBC.html">Java应 用 教 程 (五 )—— 交 互 的 Java世 界</a> ( 1998-05-08 )</font><br>

<font class="a">4. <a href="builder_course_108_1_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_108_1_GJBC.html">Java应 用 教 程 (四 )—— 五 彩 缤 纷 的 世 界</a> ( 1998-03-11 )</font><br>

<font class="a">5. <a href="builder_course_105_1_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_105_1_GJBC.html">Java应 用 教 程 (三 )—— 漂 亮 的 标 语</a> ( 1998-01-27 )</font><br>

<font class="a">6. <a href="builder_course_104_1_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_104_1_GJBC.html">Java应 用 教 程 (二 )—— 巧 手 木 匠</a> ( 1997-12-16 )</font><br>

<font class="a">7. <a href="builder_course_100_1_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_100_1_GJBC.html">Java应 用 教 程  (一)——美 丽 的 窗 口</a> ( 1997-11-04 )</font><br>

</td>

<td width="20"><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" border="0" width="20" height="1">
</td>

<td width="204" align="left" valign="top"><br>
<font class="a">
如 果 您 认 为 这 篇 文 章 还 不 错 , 欢 迎 您 向 其 他 读 者 推 荐 ; 如 果 您 认 为 这 篇 文 章 水 平 太 差 , 欢 迎 您 <a href="mailto:buildermaster@chinabyte.com">发 表 高 见</a> 。</font>
</td>
</tr>
</table>
<p>


<table border="0" cellspacing="0" cellpadding="0" bgcolor="#980018">
  <tr>
<td bgcolor="ffffff"><img src="../main/images/b_left.gif" tppabs="http://www.chinabyte.com/images/b_left.gif" border="0" WIDTH="19" HEIGHT="27"></td>
    

    
    <td>
    
    <a href="../tppmsgs/msgs2.htm#250" tppabs="http://www.chinabyte.com/staticpages/feedback/feedback_home/feedback/feedback_home_1.html" onMouseOver="window.status = '服务台'; return true "><img src="../main/images/99feedback.gif" tppabs="http://www.chinabyte.com/images/99feedback.gif" border="0" alt="服务台" WIDTH="39" HEIGHT="27"></a><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"></td>
    <td>
    <a href="../tppmsgs/msgs2.htm#251" tppabs="http://www.chinabyte.com/staticpages/siteinfo/siteinfo_mapind/siteinfo/siteinfo_mapind_1.html" onMouseOver="window.status = '站导图'; return true "><img src="../main/images/99site.gif" tppabs="http://www.chinabyte.com/images/99site.gif" border="0" alt="站导图" WIDTH="38" HEIGHT="27"></a><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"></td>
    <td>
    <a href="../tppmsgs/msgs2.htm#252" tppabs="http://www.chinabyte.com/feedback/about_chinabyte.html" onMouseOver="window.status = '关于本站'; return true "><img src="../main/images/99about.gif" tppabs="http://www.chinabyte.com/images/99about.gif" border="0" alt="关于本站" WIDTH="52" HEIGHT="27"></a><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"></td>
    <td width="131" bgcolor="#980018"><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" border="0" width="1" height="1"></td>
    <td><a HREF="../tppmsgs/msgs2.htm#200" tppabs="http://www.chinabyte.com/staticpages/digest/digest_home/digest/digest_home_1.html" onMouseOver="window.status = '及时传送IT产业新闻'; return true" target="_top"><img src="../main/images/99news.gif" tppabs="http://www.chinabyte.com/images/99news.gif" border="0" alt="新闻总线" WIDTH="53" HEIGHT="27"></a><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"></td>
    <td><a HREF="../tppmsgs/msgs2.htm#202" tppabs="http://www.chinabyte.com/staticpages/software/software_home/software/software_home_1.html" onMouseOver="window.status = '漫步免费软件仓库'; return true" target="_top"><img src="../main/images/99soft.gif" tppabs="http://www.chinabyte.com/images/99soft.gif" border="0" alt="软件仓库" WIDTH="52" HEIGHT="27"></a><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"></td>
    <td><a HREF="../tppmsgs/msgs2.htm#204" tppabs="http://www.chinabyte.com/staticpages/builder/builder_home/builder/builder_home_1.html" onMouseOver="window.status = '在线专业培训'; return true" target="_top"><img src="../main/images/99_builder.gif" tppabs="http://www.chinabyte.com/images/99_builder.gif" border="0" alt="网络学院" WIDTH="52" HEIGHT="27"></a><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"></td>
    <td><a HREF="../tppmsgs/msgs2.htm#213" tppabs="http://www.chinabyte.com/staticpages/gamecen/gamecen_home/gamecen/gamecen_home_1.html" onMouseOver="window.status = '游戏玩家的乐园'; return true" target="_top"><img src="../main/images/99game.gif" tppabs="http://www.chinabyte.com/images/99game.gif" border="0" alt="游戏天堂" WIDTH="52" HEIGHT="27"></a><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"></td>
  <td><a HREF="../tppmsgs/msgs2.htm#214" tppabs="http://www.chinabyte.com/staticpages/digital/digital_home/digital/digital_home_1.html" onMouseOver="window.status = '数字世界'; return true" target="_top"><img src="../main/images/99digital.gif" tppabs="http://www.chinabyte.com/images/99digital.gif" border="0" alt="数字世界" WIDTH="53" HEIGHT="27"></a><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"></td>
<td width="30"><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" border="0" width="1" height="1"></td>

    
  </tr>
 
</table>

<center><table>
  <tr>
    <td align="center"><br><font size="-2">
     <b>ChinaByte</b>版 权 所 有, 未 经 授 权 禁 止 复 制 或 建 立 镜 像。<br>
     如 果 您 有 什 么 问 题, 请 发 <a href="mailto:webmaster@chinabyte.com">电 子 邮 件</a> 给 我 们。 谢 谢! </font>
    </td>
  </tr>
</table></center>

<!--msnavigation--></td></tr><!--msnavigation--></table></body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -