public final class Escape extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
urlEncode(String value)
Applies URL-Encoding to the given parameter name or value.
|
static String |
validFilename(String value)
Create valid filename by applying method
validName(String) on filename and extension. |
static String |
validName(String value)
Creates a valid node name.
|
public static String urlEncode(String value)
URLEncoder.encode(String, String) with
UTF-8 character set, while avoiding the need to catch the UnsupportedEncodingException.value - the parameter name or value to encodeRuntimeException - in the very unlikely case that UTF-8 is not supported on the current systempublic static String validName(String value)
value - String to be labelized.public static String validFilename(String value)
validName(String) on filename and extension.value - FilenameCopyright © 2014 wcm.io. All rights reserved.