Class Uri.ASCIIEncoded

    • Constructor Detail

      • ASCIIEncoded

        public ASCIIEncoded​(String unicode)
        Other characters, which are Unicode chars that are not US-ASCII, and are not ISO Control or are not ISO Space chars are not preserved and encoded into their hexidecimal value prepended by '%'.

        For example: Euro currency symbol -> "%E2%82%AC".

        Uses Uri.encodeToASCIIString(String) for implementation.

        Parameters:
        unicode - unencoded input
    • Method Detail

      • cast

        public static Uri.ASCIIEncoded cast​(String encoded)
        Casts the given encoded String by creating a new ASCIIEncoded instance.

        No encoding will be performed, use with care.