public class Encodes extends Object
限定符和类型 | 方法和说明 |
---|---|
static long |
decodeBase62(String str)
Base62(0_9A_Za_z)解码数字, String->long.
|
static byte[] |
decodeBase64(String input)
Base64解码, String->byte[].
|
static byte[] |
decodeHex(String input)
Hex解码, String->byte[].
|
static String |
encodeBase62(long num)
Base62(0_9A_Za_z)编码数字, long->String.
|
static String |
encodeBase64(byte[] input)
Base64编码, byte[]->String.
|
static String |
encodeHex(byte[] input)
Hex编码, byte[]->String.
|
static String |
encodeUrlSafeBase64(byte[] input)
Base64编码, URL安全(将Base64中的URL非法字符'+'和'/'转为'-'和'_', 见RFC3548).
|
static String |
htmlEscape(String html)
Html 转码.
|
static String |
htmlUnescape(String htmlEscaped)
Html 解码.
|
static String |
urlDecode(String part)
URL 解码, Encode默认为UTF-8.
|
static String |
urlEncode(String part)
URL 编码, Encode默认为UTF-8.
|
static String |
xmlEscape(String xml)
Xml 转码.
|
static String |
xmlUnescape(String xmlEscaped)
Xml 解码.
|
public static String encodeHex(byte[] input)
public static byte[] decodeHex(String input)
public static String encodeBase64(byte[] input)
public static String encodeUrlSafeBase64(byte[] input)
public static byte[] decodeBase64(String input)
public static String encodeBase62(long num)
public static long decodeBase62(String str)
Copyright © 2014 EPIC Team. All rights reserved.