- java.lang.Object
-
- com.github.robtimus.filesystems.URISupport
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URI
create(String scheme, String ssp, String fragment)
Utility method that callsURI(String, String, String)
, wrapping any thrownURISyntaxException
in anIllegalArgumentException
.static URI
create(String scheme, String userInfo, String host, int port, String path, String query, String fragment)
Utility method that callsURI(String, String, String, int, String, String, String)
, wrapping any thrownURISyntaxException
in anIllegalArgumentException
.static URI
create(String scheme, String host, String path, String fragment)
Utility method that callsURI(String, String, String, String)
, wrapping any thrownURISyntaxException
in anIllegalArgumentException
.static URI
create(String scheme, String authority, String path, String query, String fragment)
Utility method that callsURI(String, String, String, String, String)
, wrapping any thrownURISyntaxException
in anIllegalArgumentException
.
-
-
-
Method Detail
-
create
public static URI create(String scheme, String userInfo, String host, int port, String path, String query, String fragment)
Utility method that callsURI(String, String, String, int, String, String, String)
, wrapping any thrownURISyntaxException
in anIllegalArgumentException
.- Parameters:
scheme
- The scheme name.userInfo
- The user name and authorization information.host
- The host name.port
- The port number.path
- The path.query
- The query.fragment
- The fragment.- Returns:
- The created URI.
- Throws:
IllegalArgumentException
- If creating the URI caused aURISyntaxException
to be thrown.- See Also:
URI.create(String)
-
create
public static URI create(String scheme, String authority, String path, String query, String fragment)
Utility method that callsURI(String, String, String, String, String)
, wrapping any thrownURISyntaxException
in anIllegalArgumentException
.- Parameters:
scheme
- The scheme name.authority
- The authority.path
- The path.query
- The query.fragment
- The fragment.- Returns:
- The created URI.
- Throws:
IllegalArgumentException
- If creating the URI caused aURISyntaxException
to be thrown.- See Also:
URI.create(String)
-
create
public static URI create(String scheme, String host, String path, String fragment)
Utility method that callsURI(String, String, String, String)
, wrapping any thrownURISyntaxException
in anIllegalArgumentException
.- Parameters:
scheme
- The scheme name.host
- The host name.path
- The path.fragment
- The fragment.- Returns:
- The created URI.
- Throws:
IllegalArgumentException
- If creating the URI caused aURISyntaxException
to be thrown.- See Also:
URI.create(String)
-
create
public static URI create(String scheme, String ssp, String fragment)
Utility method that callsURI(String, String, String)
, wrapping any thrownURISyntaxException
in anIllegalArgumentException
.- Parameters:
scheme
- The scheme name.ssp
- The scheme-specific part.fragment
- The fragment.- Returns:
- The created URI.
- Throws:
IllegalArgumentException
- If creating the URI caused aURISyntaxException
to be thrown.- See Also:
URI.create(String)
-
-