public abstract class AlipayUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <V> Map<String,V> |
cleanupMap(Map<String,V> map)
清除字典中值为空的项。
|
static String |
getFileSuffix(byte[] bytes)
获取文件的真实后缀名。
|
static String |
getLocalNetWorkIp() |
static String |
getMimeType(byte[] bytes)
获取文件的真实媒体类型。
|
static Map<?,?> |
parseJson(String body)
把JSON字符串转化为Map结构。
|
static <T extends AlipayResponse> |
parseResponse(String json,
Class<T> clazz) |
public static String getFileSuffix(byte[] bytes)
bytes - 文件字节流public static String getMimeType(byte[] bytes)
bytes - 文件字节流public static <V> Map<String,V> cleanupMap(Map<String,V> map)
V - 泛型map - 待清除的字典public static Map<?,?> parseJson(String body)
body - JSON字符串public static <T extends AlipayResponse> T parseResponse(String json, Class<T> clazz) throws AlipayApiException
public static String getLocalNetWorkIp()
Copyright © 2018 guerlab. All rights reserved.