| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static char | Returns: The hexadecimal value represented in the ASCII character given, orCharacter#MAX_VALUE if the character is invalid.The ASCII character of the hexadecimal number to decode.
Must be in the range c)[0-9a-fA-F].Helper to decode half of a hexadecimal number from a string. |
| public static String | Returns: decoded stringstring to decode s)Decodes a segment of an URI encoded by a browser. |
| public static String | Returns: decoded stringstring to decode s, boolean weather or not to transform plus signs into spaces plus)Decodes a segment of an URI encoded by a browser. |
| private static int |
| URIDecoder | back to summary |
|---|---|
| private URIDecoder() | |
| decodeAndTransformURIComponent | back to summary |
|---|---|
| private static String decodeAndTransformURIComponent(String s, int i, boolean plus) | |
| decodeHexNibble | back to summary |
|---|---|
| private static char decodeHexNibble(final char c) Helper to decode half of a hexadecimal number from a string.
| |
| decodeURIComponent | back to summary |
|---|---|
| public static String decodeURIComponent(String s) Decodes a segment of an URI encoded by a browser. The string is expected to be encoded as per RFC 3986, Section 2. This is the encoding used by JavaScript functions encodeURI and encodeURIComponent, but not escape. For example in this encoding, é (in Unicode U+00E9 or in UTF-8 0xC3 0xA9) is encoded as %C3%A9 or %c3%a9. Plus signs '+' will be handled as spaces and encoded using the default JDK URLEncoder class. | |
| decodeURIComponent | back to summary |
|---|---|
| public static String decodeURIComponent(String s, boolean plus) Decodes a segment of an URI encoded by a browser. The string is expected to be encoded as per RFC 3986, Section 2. This is the encoding used by JavaScript functions encodeURI and encodeURIComponent, but not escape. For example in this encoding, é (in Unicode U+00E9 or in UTF-8 0xC3 0xA9) is encoded as %C3%A9 or %c3%a9. | |
| indexOfPercentOrPlus | back to summary |
|---|---|
| private static int indexOfPercentOrPlus(String s) | |