HexEncoder

org.beangle.commons.codec.binary.HexEncoder
object HexEncoder extends Encoder[Array[Byte], String]

Hex decoder

Attributes

Graph
Supertypes
trait Encoder[Array[Byte], String]
class Object
trait Matchable
class Any
Self type
HexEncoder.type

Members list

Value members

Concrete methods

def encode(data: Array[Byte]): String
def encodeHex(data: Array[Byte], toLowerCase: Boolean): String

Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order

Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order

Value parameters

data

a byte[] to convert to Hex characters

toLowerCase

should to lower case

Attributes

Returns

A Array[Char] containing hexadecimal characters