|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.libs.Codec
public class Codec
Codec utils
| Constructor Summary | |
|---|---|
Codec()
|
|
| Method Summary | |
|---|---|
static String |
byteToHexString(byte[] bytes)
Write a byte array as hexedecimal String. |
static byte[] |
decodeBASE64(String value)
Decode a base64 value |
static String |
encodeBASE64(byte[] value)
Encode binary data to base64 |
static String |
encodeBASE64(String value)
Encode a String to base64 |
static String |
hexMD5(String value)
Build an hexadecimal MD5 hash for a String |
static String |
hexSHA1(String value)
Build an hexadecimal SHA1 hash for a String |
static byte[] |
hexStringToByte(String hexString)
Transform an hexadecimal String to a byte array. |
static String |
UUID()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Codec()
| Method Detail |
|---|
public static String UUID()
public static String encodeBASE64(String value)
value - The plain String
public static String encodeBASE64(byte[] value)
value - The binary data
public static byte[] decodeBASE64(String value)
value - The base64 encoded String
public static String hexMD5(String value)
value - The String to hash
public static String hexSHA1(String value)
value - The String to hash
public static String byteToHexString(byte[] bytes)
public static byte[] hexStringToByte(String hexString)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||