public final class UrlUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
decode(String s)
Decode a URI string (according to RFC 2396).
|
static String |
decode(String s,
String enc)
Decode a URI string (according to RFC 2396).
|
static String |
encode(String s,
String enc)
Encode a string for inclusion in a URI (according to RFC 2396).
|
public static String decode(String s) throws MalformedURLException
MalformedURLException
public static String decode(String s, String enc) throws MalformedURLException, UnsupportedEncodingException
public static String encode(String s, String enc) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.