public class Util extends Object
| 构造器和说明 |
|---|
Util() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getCanonicalTime() |
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)
All letters used in the percent-encoding are in uppercase.
|
static String |
uriEncodeGBK(String value,
boolean encodeSlash)
All letters used in the percent-encoding are in uppercase.
|
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 uriEncodeGBK(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 boolean isLiteral(String input)
Copyright © 2018. All rights reserved.