TODO: These methods are for highest performance and are consistent with the JavaScript methods. They are not meant for general purpose URL manipulation, and are not trying to replace any full-featured URI tools.
Consider the following if needing more than what this provides (in no particular order):
- Author:
- AO Industries, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Decodes a URI to RFC 3987 Unicode format in the default encoding
.IRI.ENCODING
static void
decodeURI
(String uri, Encoder encoder, Appendable out) Decodes a URI to RFC 3987 Unicode format in the default encoding
.IRI.ENCODING
static void
decodeURI
(String uri, Appendable out) Decodes a URI to RFC 3987 Unicode format in the default encoding
.IRI.ENCODING
static void
decodeURI
(String uri, StringBuffer sb) Decodes a URI to RFC 3987 Unicode format in the default encoding
.IRI.ENCODING
static void
decodeURI
(String uri, StringBuilder sb) Decodes a URI to RFC 3987 Unicode format in the default encoding
.IRI.ENCODING
static String
Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
static void
decodeURIComponent
(String s, Encoder encoder, Appendable out) Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
static void
decodeURIComponent
(String s, Appendable out) Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
static void
decodeURIComponent
(String s, StringBuffer sb) Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
static void
Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
-
Method Details
-
decodeURIComponent
Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
This uses
URLDecoder.decode(java.lang.String, java.lang.String)
.- See Also:
-
decodeURIComponent
Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
This uses
URLDecoder.decode(java.lang.String, java.lang.String)
.- Throws:
IOException
- See Also:
-
decodeURIComponent
Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
This uses
URLDecoder.decode(java.lang.String, java.lang.String)
.- Parameters:
encoder
- An optional encoder the output is appthrough- Throws:
IOException
- See Also:
-
decodeURIComponent
Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
This uses
URLDecoder.decode(java.lang.String, java.lang.String)
.- See Also:
-
decodeURIComponent
Decodes a value from its use in a path component or fragment in the default encoding
.IRI.ENCODING
This uses
URLDecoder.decode(java.lang.String, java.lang.String)
.- See Also:
-
decodeURI
Decodes a URI to RFC 3987 Unicode format in the default encoding
. Decodes the characters in the URI, not including any characters defined in RFC 3986: Reserved Characters. Furthermore, characters that would decode to a reserved character are left percent-encoded to avoid ambiguity.IRI.ENCODING
- Returns:
- The decoded URI or
url
when not modified - See Also:
-
decodeURI
Decodes a URI to RFC 3987 Unicode format in the default encoding
. Decodes the characters in the URI, not including any characters defined in RFC 3986: Reserved Characters. Furthermore, characters that would decode to a reserved character are left percent-encoded to avoid ambiguity.IRI.ENCODING
- Throws:
IOException
- See Also:
-
decodeURI
Decodes a URI to RFC 3987 Unicode format in the default encoding
. Decodes the characters in the URI, not including any characters defined in RFC 3986: Reserved Characters. Furthermore, characters that would decode to a reserved or invalid character are left percent-encoded to avoid ambiguity.IRI.ENCODING
- Parameters:
encoder
- An optional encoder the output is applied through- Throws:
IOException
- See Also:
-
decodeURI
Decodes a URI to RFC 3987 Unicode format in the default encoding
. Decodes the characters in the URI, not including any characters defined in RFC 3986: Reserved Characters. Furthermore, characters that would decode to a reserved character are left percent-encoded to avoid ambiguity.IRI.ENCODING
- See Also:
-
decodeURI
Decodes a URI to RFC 3987 Unicode format in the default encoding
. Decodes the characters in the URI, not including any characters defined in RFC 3986: Reserved Characters. Furthermore, characters that would decode to a reserved character are left percent-encoded to avoid ambiguity.IRI.ENCODING
- See Also:
-