org.eclipse.emf.ecore.xml.type.internal
Class DataValue.HexBin
java.lang.Object
org.eclipse.emf.ecore.xml.type.internal.DataValue.HexBin
- Enclosing class:
- DataValue
- public static final class DataValue.HexBin
- extends Object
Method Summary |
static byte[] |
decode(String encoded)
Decode hex string to a byte array |
static String |
encode(byte[] binaryData)
Encode a byte array to hex string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataValue.HexBin
public DataValue.HexBin()
encode
public static String encode(byte[] binaryData)
- Encode a byte array to hex string
- Parameters:
binaryData
- array of byte to encode
- Returns:
- return encoded string
decode
public static byte[] decode(String encoded)
- Decode hex string to a byte array
- Parameters:
encoded
- encoded string
- Returns:
- return array of byte to encode