public class Util extends Object
| 构造器和说明 |
|---|
Util() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getCanonicalTime() |
static org.json.JSONObject |
getGeneralError(int errorCode,
String errorMsg) |
static boolean |
isLiteral(String input) |
static String |
mkString(Iterator<String> iter,
char seprator) |
static byte[] |
readFileByBytes(String filePath) |
static String |
uriEncode(String value,
boolean encodeSlash)
Normalize a string for use in BCE web service APIs.
|
static void |
writeBytesToFileSystem(byte[] data,
String output) |
public static String uriEncode(String value, boolean encodeSlash)
value - the string to normalize.encodeSlash - if encode '/'public static String getCanonicalTime()
public static byte[] readFileByBytes(String filePath) throws IOException
filePath - 文件路径IOException - 读取文件错误public static void writeBytesToFileSystem(byte[] data,
String output)
throws IOException
IOExceptionpublic static org.json.JSONObject getGeneralError(int errorCode,
String errorMsg)
public static boolean isLiteral(String input)
Copyright © 2024. All rights reserved.