public static class BinaryToTextEncoding.Hex extends Object implements BinaryToTextEncoding.EncoderDecoder
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(String hexString)
Decodes given encoded string
|
String |
encode(byte[] byteArray,
ByteOrder byteOrder)
Encodes given array with given byte order to a string
|
public String encode(byte[] byteArray, ByteOrder byteOrder)
BinaryToTextEncoding.Encoder
encode
in interface BinaryToTextEncoding.Encoder
byteArray
- to encodebyteOrder
- the array is inpublic byte[] decode(String hexString)
BinaryToTextEncoding.Decoder
decode
in interface BinaryToTextEncoding.Decoder
hexString
- stringCopyright © 2017–2018. All rights reserved.