|
||||||||||
| 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 java.lang.String |
byteToHexString(byte[] bytes)
Write a byte array as hexadecimal String. |
static byte[] |
decodeBASE64(java.lang.String value)
Decode a base64 value |
static java.lang.String |
encodeBASE64(byte[] value)
Encode binary data to base64 |
static java.lang.String |
encodeBASE64(java.lang.String value)
Encode a String to base64 |
static java.lang.String |
hexMD5(java.lang.String value)
Build an hexadecimal MD5 hash for a String |
static java.lang.String |
hexSHA1(java.lang.String value)
Build an hexadecimal SHA1 hash for a String |
static byte[] |
hexStringToByte(java.lang.String hexString)
Transform an hexadecimal String to a byte array. |
static java.lang.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 java.lang.String UUID()
public static java.lang.String encodeBASE64(java.lang.String value)
value - The plain String
public static java.lang.String encodeBASE64(byte[] value)
value - The binary data
public static byte[] decodeBASE64(java.lang.String value)
value - The base64 encoded String
public static java.lang.String hexMD5(java.lang.String value)
value - The String to hash
public static java.lang.String hexSHA1(java.lang.String value)
value - The String to hash
public static java.lang.String byteToHexString(byte[] bytes)
public static byte[] hexStringToByte(java.lang.String hexString)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||