## Uses of Class
java.net.URI

- Packages that use URI
  Package | Description
  --- | ---
  java.io |
  java.net |

- - ### Uses of URI in java.io

    Methods in java.io that return URI
    Modifier and Type | Method and Description
    --- | ---
    `URI` | File.`toURI()` Constructs a `file:` URI that represents this abstract pathname.

    Constructors in java.io with parameters of type URI
    Constructor and Description
    `File(URI uri)` Creates a new `File` instance by converting the given `file:` URI into an abstract pathname.

  - ### Uses of URI in java.net

    Methods in java.net that return URI
    Modifier and Type | Method and Description
    --- | ---
    `static URI` | URI.`create(String str)` Creates a URI by parsing the given string.
    `URI` | URI.`normalize()` Normalizes this URI's path.
    `URI` | URI.`parseServerAuthority()` Attempts to parse this URI's authority component, if defined, into user-information, host, and port components.
    `URI` | URI.`relativize(URI uri)` Relativizes the given URI against this URI.
    `URI` | URI.`resolve(String str)` Constructs a new URI by parsing the given string and then resolving it against this URI.
    `URI` | URI.`resolve(URI uri)` Resolves the given URI against this URI.
    `URI` | URL.`toURI()` Returns a `URI` equivalent to this URL.

    Methods in java.net with parameters of type URI
    Modifier and Type | Method and Description
    --- | ---
    `int` | URI.`compareTo(URI that)` Compares this URI to another object, which must be a URI.
    `URI` | URI.`relativize(URI uri)` Relativizes the given URI against this URI.
    `URI` | URI.`resolve(URI uri)` Resolves the given URI against this URI.

Copyright © 2025 API Design. All Rights Reserved.