public class URLDecoder
extends java.lang.Object
| Constructor and Description |
|---|
URLDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decode(java.lang.String s,
boolean tolerant)
Decodes a URLEncoder format string.
|
static void |
main(java.lang.String[] args) |
public static void main(java.lang.String[] args)
throws URLEncodedFormatException
URLEncodedFormatExceptionpublic static java.lang.String decode(java.lang.String s,
boolean tolerant)
throws URLEncodedFormatException
s - String to be translated.tolerant - If true, be tolerant of bogus escapes; bogus escapes are treated as
just plain characters. Not recommended; a hack to allow users to paste in URLs
containing %'s.URLEncodedFormatException