public class EncodingUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static BError |
createEncodingError(Context context,
String errMsg)
Create encoding error.
|
static byte[] |
decodeHex(String hexString)
Converts a String representing hexadecimal values into an array of bytes of those same values.
|
static String |
encodeHex(byte[] bytes)
Converts the given byte array to a Hex formatted string.
|
public static String encodeHex(byte[] bytes)
bytes - array of bytespublic static byte[] decodeHex(String hexString) throws IllegalArgumentException
hexString - A String containing hexadecimal digitsIllegalArgumentException - Thrown if an odd number or illegal number of characters is suppliedCopyright © 2019 WSO2. All rights reserved.