public class QSStringUtil extends Object
| 构造器和说明 |
|---|
QSStringUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
asciiCharactersEncoding(String str)
Chinese characters transform
|
static org.json.JSONObject |
getMapToJson(Map o) |
static String |
getObjectToJson(Object o) |
static String |
getParameterRequired(String paraName,
String value) |
static String |
getParameterValueNotAllowedError(String paraName,
String value,
String[] values) |
static String |
getUserAgent() |
static boolean |
isEmpty(String str) |
static Object |
objectJSONValue(Object o) |
static String |
objectToJson(String key,
Object o) |
static String |
percentEncode(String value,
String encoding) |
public static String objectToJson(String key, Object o) throws QSException
QSExceptionpublic static Object objectJSONValue(Object o) throws QSException
QSExceptionpublic static org.json.JSONObject getMapToJson(Map o) throws QSException
QSExceptionpublic static String percentEncode(String value, String encoding) throws UnsupportedEncodingException
public static boolean isEmpty(String str)
public static String getUserAgent()
public static String getParameterValueNotAllowedError(String paraName, String value, String[] values)
public static String asciiCharactersEncoding(String str) throws QSException
str - unEncoded charsQSException - UnsupportedEncodingExceptionCopyright © 2018. All rights reserved.