Package 

Class URIUtils

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class URIUtils.LazyUrl

      A lazily evaluated URL that can also return its path. If the URL is invalid the path will be {@code null}.

    • Method Summary

      Modifier and Type Method Description
      static String decode(String encoded) Decodes a %-encoded UTF-8 {@code String} into a regular {@code String}.
      static String decode(String encoded, boolean plusToSpace) Decodes a %-encoded UTF-8 {@code String} into a regular {@code String}.
      static URI safeParse(String unparsed)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • decode

         static String decode(String encoded)

        Decodes a %-encoded UTF-8 {@code String} into a regular {@code String}.

        All illegal % sequences and illegal UTF-8 sequences are replaced with one or more �characters.

      • decode

         static String decode(String encoded, boolean plusToSpace)

        Decodes a %-encoded UTF-8 {@code String} into a regular {@code String}. Can also be made todecode '+' to ' ' to support old query strings.

        All illegal % sequences and illegal UTF-8 sequences are replaced with one or more �characters.