public class StringUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
logger
The logger.
|
static String |
regx
The regx.
|
static String |
UTF_8
The Constant UTF_8.
|
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
base64DecodeString(String s)
Base64 decode string.
|
static String |
base64EncodeString(String s)
Base64 encode string.
|
static String |
base64EncodeStringURLSafe(String s)
Base64 encode string url safe.
|
static String |
removeSpecialCharacters(String input)
Removes the special characters.
|
static String |
replaceAllWhiteSpace(String input,
String replacement)
Replace all white space.
|
public static final String UTF_8
public static String regx
protected static org.apache.log4j.Logger logger
public static String removeSpecialCharacters(String input)
input - the inputpublic static String replaceAllWhiteSpace(String input, String replacement)
input - the inputreplacement - the replacementpublic static String base64DecodeString(String s)
s - the spublic static String base64EncodeStringURLSafe(String s)
s - the sCopyright © 2018. All Rights Reserved.