src/java.base/share/classes/java/net/URI.java
changeset 52700 b206bdfb9fe2
parent 52499 768b1c612100
child 52944 d75110673dc9
equal deleted inserted replaced
52699:44fe5fab538a 52700:b206bdfb9fe2
    81  * <p> An <i>opaque</i> URI is an absolute URI whose scheme-specific part does
    81  * <p> An <i>opaque</i> URI is an absolute URI whose scheme-specific part does
    82  * not begin with a slash character ({@code '/'}).  Opaque URIs are not
    82  * not begin with a slash character ({@code '/'}).  Opaque URIs are not
    83  * subject to further parsing.  Some examples of opaque URIs are:
    83  * subject to further parsing.  Some examples of opaque URIs are:
    84  *
    84  *
    85  * <blockquote><ul style="list-style-type:none">
    85  * <blockquote><ul style="list-style-type:none">
    86  * <li>{@code mailto:java-net@java.sun.com}</li>
    86  * <li>{@code mailto:java-net@www.example.com}</li>
    87  * <li>{@code news:comp.lang.java}</li>
    87  * <li>{@code news:comp.lang.java}</li>
    88  * <li>{@code urn:isbn:096139210x}</li>
    88  * <li>{@code urn:isbn:096139210x}</li>
    89  * </ul></blockquote>
    89  * </ul></blockquote>
    90  *
    90  *
    91  * <p> A <i>hierarchical</i> URI is either an absolute URI whose
    91  * <p> A <i>hierarchical</i> URI is either an absolute URI whose
   397  * </blockquote>
   397  * </blockquote>
   398  *
   398  *
   399  * For any URI <i>u</i> that does not contain redundant syntax such as two
   399  * For any URI <i>u</i> that does not contain redundant syntax such as two
   400  * slashes before an empty authority (as in {@code file:///tmp/}&nbsp;) or a
   400  * slashes before an empty authority (as in {@code file:///tmp/}&nbsp;) or a
   401  * colon following a host name but no port (as in
   401  * colon following a host name but no port (as in
   402  * {@code http://java.sun.com:}&nbsp;), and that does not encode characters
   402  * {@code http://www.example.com:}&nbsp;), and that does not encode characters
   403  * except those that must be quoted, the following identities also hold:
   403  * except those that must be quoted, the following identities also hold:
   404  * <pre>
   404  * <pre>
   405  *     new URI(<i>u</i>.getScheme(),
   405  *     new URI(<i>u</i>.getScheme(),
   406  *             <i>u</i>.getSchemeSpecificPart(),
   406  *             <i>u</i>.getSchemeSpecificPart(),
   407  *             <i>u</i>.getFragment())
   407  *             <i>u</i>.getFragment())