-
public class URIUtils
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classURIUtils.LazyUrlA 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 Stringdecode(String encoded)Decodes a %-encoded UTF-8 {@code String}into a regular{@code String}.static Stringdecode(String encoded, boolean plusToSpace)Decodes a %-encoded UTF-8 {@code String}into a regular{@code String}.static URIsafeParse(String unparsed)-
-
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.
-
-
-
-