public class UrlDecoder extends Object
URLDecoder
,
RFC-2396Modifier and Type | Field and Description |
---|---|
static UrlDecoder |
PATH_INSTANCE
Encoder used to decode components of a path.
For example: http://org.acme/foo/thispart/orthispart?butnot=thispart |
static UrlDecoder |
QUERY_INSTANCE
Encoder used to decode name or value components of a query string.
For example: http://org.acme/notthis/northis/oreventhis?buthis=isokay&asis=thispart |
Modifier and Type | Method and Description |
---|---|
String |
decode(String s,
Charset charset) |
String |
decode(String s,
String enc) |
public static final UrlDecoder QUERY_INSTANCE
public static final UrlDecoder PATH_INSTANCE
public String decode(String s, String enc)
s
- string to decodeenc
- encoding to decode withURLDecoder.decode(String, String)
public String decode(String s, Charset charset)
s
- string to decodecharset
- encoding to decode withURLDecoder.decode(String, String)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.