| Modifier and Type | Method and Description |
|---|---|
static Path |
get(String first,
String... more)
Converts a path string, or a sequence of strings that when joined form
a path string, to a
Path. |
static Path |
get(URI uri)
Converts the given URI to a
Path object. |
public static Path get(String first, String... more)
Path.first - the path string or initial part of the path stringmore - additional strings to be joined to form the path stringPathInvalidPathException - if the path string cannot be converted to a PathFileSystem.getPath(java.lang.String, java.lang.String...),
Path.of(String,String...)public static Path get(URI uri)
Path object.uri - the URI to convertPathIllegalArgumentException - if preconditions on the uri parameter do not hold. The
format of the URI is provider specific.FileSystemNotFoundException - The file system, identified by the URI, does not exist and
cannot be created automatically, or the provider identified by
the URI's scheme component is not installedSecurityException - if a security manager is installed and it denies an unspecified
permission to access the file systemPath.of(URI)