public class Utils extends Object
| 构造器和说明 |
|---|
Utils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
crc32(byte[] bytes) |
static long |
crc32(InputStream inputStream) |
static String |
encode(Map<String,List<String>> v) |
static IVodUploadStrategy |
getVodUploadCoreInstance(int uploadStrategy) |
static String |
hashSHA256(byte[] content) |
static byte[] |
hmacSHA1(byte[] key,
String content) |
static byte[] |
hmacSHA256(byte[] key,
String content) |
static List<org.apache.http.NameValuePair> |
mapToPairList(Map<String,String> params) |
static InputStream |
newRepeatableInputStream(InputStream original) |
static InputStream |
newRepeatableInputStream(PartInputStream original) |
static Map<String,String> |
paramsToMap(Object obj) |
static List<org.apache.http.NameValuePair> |
paramsToPair(Object obj) |
static Map<String,String> |
protoBufferToMap(com.google.protobuf.MessageOrBuilder obj,
boolean needDefaultValueFields) |
static String |
randWeights(Map<String,Integer> weightsMap,
String excludeDomain) |
public static List<org.apache.http.NameValuePair> mapToPairList(Map<String,String> params)
public static byte[] hmacSHA256(byte[] key,
String content)
throws Exception
Exceptionpublic static long crc32(InputStream inputStream) throws Exception
Exceptionpublic static InputStream newRepeatableInputStream(PartInputStream original) throws IOException
IOExceptionpublic static InputStream newRepeatableInputStream(InputStream original) throws IOException
IOExceptionpublic static IVodUploadStrategy getVodUploadCoreInstance(int uploadStrategy)
Copyright © 2024. All rights reserved.