|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.aduna.text.EncodingUtil
public class EncodingUtil
Utility methods for encoding and decoding values in various encoding formats.
Constructor Summary | |
---|---|
EncodingUtil()
|
Method Summary | |
---|---|
static java.lang.String |
binary2hex(byte[] bytes)
Translates a binary value (in the form of a byte array) to its hexadecimal value. |
static byte[] |
hex2binary(java.lang.String hexString)
Translates an hexadecimal value to binary (in the form of a byte array). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EncodingUtil()
Method Detail |
---|
public static java.lang.String binary2hex(byte[] bytes)
bytes
- The binary value to translate to hexadecimal.
public static byte[] hex2binary(java.lang.String hexString)
hexString
- The hexadecimal value to translate to binary.
java.lang.NumberFormatException
- If the supplied hexString does not represent an
hexadecimal value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |