类 UriUtils


  • public abstract class UriUtils
    extends Object
    Utility class for URI encoding and decoding based on RFC 3986. Offers encoding methods for the various URI components.

    All encode*(String, String) methods in this class operate in a similar way:

    • Valid characters for the specific URI component as defined in RFC 3986 stay the same.
    • All other characters are converted into one or more bytes in the given encoding scheme. Each of the resulting bytes is written as a hexadecimal string in the "%xy" format.
    从以下版本开始:
    3.0
    作者:
    Arjen Poutsma, Juergen Hoeller
    另请参阅:
    RFC 3986