URL.openConnection()
instead.
Please visit this webpage
for further details.@Deprecated public class Hex extends java.lang.Object implements BinaryEncoder, BinaryDecoder
Constructor and Description |
---|
Hex()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(byte[] array)
Deprecated.
Converts an array of character bytes representing hexidecimal values into an
array of bytes of those same values.
|
java.lang.Object |
decode(java.lang.Object object)
Deprecated.
Converts a String or an array of character bytes representing hexidecimal values into an
array of bytes of those same values.
|
static byte[] |
decodeHex(char[] data)
Deprecated.
Converts an array of characters representing hexidecimal values into an
array of bytes of those same values.
|
byte[] |
encode(byte[] array)
Deprecated.
Converts an array of bytes into an array of bytes for the characters representing the
hexidecimal values of each byte in order.
|
java.lang.Object |
encode(java.lang.Object object)
Deprecated.
Converts a String or an array of bytes into an array of characters representing the
hexidecimal values of each byte in order.
|
static char[] |
encodeHex(byte[] data)
Deprecated.
Converts an array of bytes into an array of characters representing the hexidecimal values of each byte in order.
|
public static byte[] decodeHex(char[] data) throws DecoderException
data
- An array of characters containing hexidecimal digitsDecoderException
- Thrown if an odd number or illegal of characters
is suppliedpublic static char[] encodeHex(byte[] data)
data
- a byte[] to convert to Hex characterspublic byte[] decode(byte[] array) throws DecoderException
decode
in interface BinaryDecoder
array
- An array of character bytes containing hexidecimal digitsDecoderException
- Thrown if an odd number of characters is supplied
to this functiondecodeHex(char[])
public java.lang.Object decode(java.lang.Object object) throws DecoderException
decode
in interface Decoder
object
- A String or, an array of character bytes containing hexidecimal digitsDecoderException
- Thrown if an odd number of characters is supplied
to this function or the object is not a String or char[]decodeHex(char[])
public byte[] encode(byte[] array)
encode
in interface BinaryEncoder
array
- a byte[] to convert to Hex charactersencodeHex(byte[])
public java.lang.Object encode(java.lang.Object object) throws EncoderException
encode
in interface Encoder
object
- a String, or byte[] to convert to Hex charactersEncoderException
- Thrown if the given object is not a String or byte[]encodeHex(byte[])