public class URI extends Object
| Modifier and Type | Field and Description |
|---|---|
static CharMapper |
charMapper
A
CharMapper for use with Strings.escape(String, CharMapper) etc. |
static CharUnmapper |
charUnmapper
A
CharUnmapper for use with Strings.unescape(String, CharUnmapper)
etc. |
static String |
errorMessage |
| Modifier and Type | Method and Description |
|---|---|
static String |
escape(String s)
Escape a string for use in a URI.
|
static boolean |
isUnreserved(int cp)
Test whether a given code point is "unreserved" according to the URI specification
RFC 3986.
|
static String |
unescape(String s)
Unescape a string from a URI.
|
public static final String errorMessage
public static final CharMapper charMapper
CharMapper for use with Strings.escape(String, CharMapper) etc.public static final CharUnmapper charUnmapper
CharUnmapper for use with Strings.unescape(String, CharUnmapper)
etc.public static boolean isUnreserved(int cp)
cp - the code point to be testedtrue if the character is unreservedpublic static String escape(String s)
s - the string to be escapedCopyright © 2020. All rights reserved.