PrivMX DOCS
API Reference/PrivMX Endpoint Java/Core

Hex

Constructors

Hex

public void Hex()

Static Methods

decode

Decodes string in Hex to byte array.

Params

hex_data

String

string to decode

public static byte[] decode(
String hex_data
)

Returns

byte[] · byte array with decoded data

encode

Encodes byte array to a string in Hex format.

Params

data

byte[]

byte array to encode

public static String encode(
byte[] data
)

Returns

String · string in Hex format

is

Checks if given string is in Hex format.

Params

data

String

string to check

public static boolean is(
String data
)

Returns

boolean · data check result

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.