jdk/src/share/classes/java/net/URI.java
changeset 21334 c60dfce46a77
parent 20455 f6f9a0c2796b
child 23725 0190e5c0e70c
equal deleted inserted replaced
21333:e940100a7176 21334:c60dfce46a77
   387  * For any URI <i>u</i> that does not contain redundant syntax such as two
   387  * For any URI <i>u</i> that does not contain redundant syntax such as two
   388  * slashes before an empty authority (as in {@code file:///tmp/}&nbsp;) or a
   388  * slashes before an empty authority (as in {@code file:///tmp/}&nbsp;) or a
   389  * colon following a host name but no port (as in
   389  * colon following a host name but no port (as in
   390  * {@code http://java.sun.com:}&nbsp;), and that does not encode characters
   390  * {@code http://java.sun.com:}&nbsp;), and that does not encode characters
   391  * except those that must be quoted, the following identities also hold:
   391  * except those that must be quoted, the following identities also hold:
   392  * <p><pre>
   392  * <pre>
   393  *     new URI(<i>u</i>.getScheme(),
   393  *     new URI(<i>u</i>.getScheme(),
   394  *             <i>u</i>.getSchemeSpecificPart(),
   394  *             <i>u</i>.getSchemeSpecificPart(),
   395  *             <i>u</i>.getFragment())
   395  *             <i>u</i>.getFragment())
   396  *     .equals(<i>u</i>)</pre>
   396  *     .equals(<i>u</i>)</pre>
   397  * in all cases,
   397  * in all cases,
   398  * <p><pre>
   398  * <pre>
   399  *     new URI(<i>u</i>.getScheme(),
   399  *     new URI(<i>u</i>.getScheme(),
   400  *             <i>u</i>.getUserInfo(), <i>u</i>.getAuthority(),
   400  *             <i>u</i>.getUserInfo(), <i>u</i>.getAuthority(),
   401  *             <i>u</i>.getPath(), <i>u</i>.getQuery(),
   401  *             <i>u</i>.getPath(), <i>u</i>.getQuery(),
   402  *             <i>u</i>.getFragment())
   402  *             <i>u</i>.getFragment())
   403  *     .equals(<i>u</i>)</pre>
   403  *     .equals(<i>u</i>)</pre>
   404  * if <i>u</i> is hierarchical, and
   404  * if <i>u</i> is hierarchical, and
   405  * <p><pre>
   405  * <pre>
   406  *     new URI(<i>u</i>.getScheme(),
   406  *     new URI(<i>u</i>.getScheme(),
   407  *             <i>u</i>.getUserInfo(), <i>u</i>.getHost(), <i>u</i>.getPort(),
   407  *             <i>u</i>.getUserInfo(), <i>u</i>.getHost(), <i>u</i>.getPort(),
   408  *             <i>u</i>.getPath(), <i>u</i>.getQuery(),
   408  *             <i>u</i>.getPath(), <i>u</i>.getQuery(),
   409  *             <i>u</i>.getFragment())
   409  *             <i>u</i>.getFragment())
   410  *     .equals(<i>u</i>)</pre>
   410  *     .equals(<i>u</i>)</pre>