Class URI

public class URI extends AnyURI
Implementation of AnyURI that is restricted to RFC 3986 URI only.

This may have additional, unnecessary percent encodings, if they were present in the anyUri provided to the constructor. If consistent formatting is required, use IRI.toURI(). See isEncodingNormalized().

Furthermore, there is no assumption about the query parameter encodings, and the query could, in theory, contain any arbitrary encoded data. Existing encoded query data is maintained, as-is.

When a strict ASCII-only representation of a RFC 3986 URI is required, use URI. When a Unicode representation of a RFC 3987 IRI is preferred, use IRI. Otherwise, to support both, use AnyURI, which should also perform the best since it performs fewer conversions.

AO Industries, Inc.