public class HexCoDec extends Object
Constructor and Description |
---|
HexCoDec() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(char[] hexChars)
Decode an array of hex chars
|
static byte[] |
decode(char[] hexChars,
int startIndex,
int length)
Decode an array of hex chars.
|
static byte[] |
decode(String hexValue)
Decode a hex string
|
static char[] |
encode(byte[] bites)
Hex encode an array of bytes
|
static char[] |
encode(byte[] bites,
int startIndex,
int length)
Hex encode an array of bytes
|
public static byte[] decode(String hexValue)
hexValue
- the string of hex characterspublic static byte[] decode(char[] hexChars)
hexChars
- an array of hex characters.public static byte[] decode(char[] hexChars, int startIndex, int length)
hexChars
- an array of hex characters.startIndex
- the index of the first character to decodelength
- the number of characters to decode.public static char[] encode(byte[] bites)
bites
- the array of bytes to encode.public static char[] encode(byte[] bites, int startIndex, int length)
bites
- the array of bytes to encode.startIndex
- the index of the first character to encode.length
- the number of characters to encode.Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.