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 StringDecodes a URI to RFC 3987 Unicode format in the default encoding.IRI.ENCODINGstatic voiddecodeURI(String uri, Encoder encoder, Appendable out) Decodes a URI to RFC 3987 Unicode format in the default encoding.IRI.ENCODINGstatic voiddecodeURI(String uri, Appendable out) Decodes a URI to RFC 3987 Unicode format in the default encoding.IRI.ENCODINGstatic voiddecodeURI(String uri, StringBuffer sb) Decodes a URI to RFC 3987 Unicode format in the default encoding.IRI.ENCODINGstatic voiddecodeURI(String uri, StringBuilder sb) Decodes a URI to RFC 3987 Unicode format in the default encoding.IRI.ENCODINGstatic StringDecodes a value from its use in a path component or fragment in the default encoding.IRI.ENCODINGstatic voiddecodeURIComponent(String s, Encoder encoder, Appendable out) Decodes a value from its use in a path component or fragment in the default encoding.IRI.ENCODINGstatic voiddecodeURIComponent(String s, Appendable out) Decodes a value from its use in a path component or fragment in the default encoding.IRI.ENCODINGstatic voiddecodeURIComponent(String s, StringBuffer sb) Decodes a value from its use in a path component or fragment in the default encoding.IRI.ENCODINGstatic voidDecodes 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.ENCODINGThis 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.ENCODINGThis 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.ENCODINGThis 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.ENCODINGThis 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.ENCODINGThis 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
urlwhen 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:
-
