Returns the URI formed by appending a period (".") followed by the
specified file extension to the last path segment of this URI, if it is
hierarchical with a non-empty path ending in a non-empty segment;
otherwise, this URI is returned unchanged.
Returns the URI formed from this URI and the given fragment.
Returns the URI formed from this URI and the given query.
Returns the URI formed by appending the specified segment on to the end
of the path of this URI, if hierarchical; this URI unchanged,
otherwise.
Returns the URI formed by appending the specified segments on to the
end of the path of this URI, if hierarchical; this URI unchanged,
otherwise.
Static factory method based on parsing a
File
path
string.
Static factory method for a generic, non-hierarchical URI.
Static factory method for a relative hierarchical URI with relative
path.
Static factory method for a hierarchical URI with absolute path.
Static factory method for a hierarchical URI with no path.
Static factory method based on parsing a plug-in-based path string,
with an option to encode the created URI.
Static factory method based on parsing a workspace-relative path string,
with an option to encode the created URI.
Static factory method that encodes and parses the given URI string.
URI.createURI(String uri,
boolean ignoreEscaped,
int fragmentLocationStyle)
Static factory method that encodes and parses the given URI string.
Finds the shortest relative or, if necessary, the absolute URI that,
when resolved against the given
base
absolute hierarchical
URI using
resolve
, will yield this absolute URI.
URI.deresolve(URI base,
boolean preserveRootParents,
boolean anyRelPath,
boolean shorterRelPath)
Finds an absolute URI that, when resolved against the given
base
absolute hierarchical URI using
resolve
, will yield this absolute URI.
If this is a hierarchical URI reference and oldPrefix
is a
prefix of it, this returns the URI formed by replacing it by
newPrefix
; null
otherwise.
Resolves this URI reference against a base
absolute
hierarchical URI, returning the resulting absolute URI.
URI.resolve(URI base,
boolean preserveRootParents)
Resolves this URI reference against a base
absolute
hierarchical URI, returning the resulting absolute URI.
If this URI has a non-null
fileExtension
,
returns the URI formed by removing it; this URI unchanged, otherwise.
If this URI has a non-null fragment
, returns the URI
formed by removing it; this URI unchanged, otherwise.
If this URI has a non-null query
, returns the URI
formed by removing it; this URI unchanged, otherwise.
Returns the URI formed by trimming the specified number of segments
(including empty segments, such as one representing a trailing
separator) from the end of the path of this URI, if hierarchical;
otherwise, this URI is returned unchanged.
Finds the shortest relative or, if necessary, the absolute URI that,
when resolved against the given
base
absolute hierarchical
URI using
resolve
, will yield this absolute URI.
URI.deresolve(URI base,
boolean preserveRootParents,
boolean anyRelPath,
boolean shorterRelPath)
Finds an absolute URI that, when resolved against the given
base
absolute hierarchical URI using
resolve
, will yield this absolute URI.
If this is a hierarchical URI reference and oldPrefix
is a
prefix of it, this returns the URI formed by replacing it by
newPrefix
; null
otherwise.
Resolves this URI reference against a base
absolute
hierarchical URI, returning the resulting absolute URI.
URI.resolve(URI base,
boolean preserveRootParents)
Resolves this URI reference against a base
absolute
hierarchical URI, returning the resulting absolute URI.
createURI
, which now has explicit device support enabled.