diff --git a/src/share/classes/java/net/URL.java b/src/share/classes/java/net/URL.java index a17fa946aa4243f56c24b4c192b45716de19ae9d..6227103712692e1dfaefbfc233aec01b7e009527 100644 --- a/src/share/classes/java/net/URL.java +++ b/src/share/classes/java/net/URL.java @@ -38,17 +38,21 @@ import sun.security.util.SecurityConstants; * directory, or it can be a reference to a more complicated object, * such as a query to a database or to a search engine. More * information on the types of URLs and their formats can be found at: - *
- * - * http://www.socs.uts.edu.au/MosaicDocs-old/url-primer.html - *+ * + * Types of URL *
- * In general, a URL can be broken into several parts. The previous - * example of a URL indicates that the protocol to use is + * In general, a URL can be broken into several parts. Consider the + * following example: + *
+ *+ * http://www.example.com/docs/resource1.html + *
+ * The URL above indicates that the protocol to use is
* http
(HyperText Transfer Protocol) and that the
* information resides on a host machine named
- * www.socs.uts.edu.au
. The information on that host
- * machine is named /MosaicDocs-old/url-primer.html
. The exact
+ * www.example.com
. The information on that host
+ * machine is named /docs/resource1.html
. The exact
* meaning of this name on the host machine is both protocol
* dependent and host dependent. The information normally resides in
* a file, but it could be generated on the fly. This component of
@@ -61,7 +65,7 @@ import sun.security.util.SecurityConstants;
* http
is 80
. An alternative port could be
* specified as:
*
*- * http://www.socs.uts.edu.au:80/MosaicDocs-old/url-primer.html + * http://www.example.com:1080/docs/resource1.html *