public final class HexDecoder
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
DATA_TYPE |
Identifies the data type supported by this decoder.
|
protected static byte[] |
DECODING_TABLE |
Decoding table.
|
protected static byte[] |
ENCODING_TABLE |
Encoding table.
|
| Modifier and Type | Method | Description |
|---|---|---|
static int |
decode(byte[] data,
int off,
int length,
java.io.OutputStream out) |
Decodes the Hex encoded byte data writing it to the given output stream,
whitespace characters will be ignored.
|
static byte[] |
decode(java.lang.String data) |
Decodes the HEX input data producing a output stream.
|
static int |
decode(java.lang.String data,
java.io.OutputStream out) |
Decodes the Hex encoded String data writing it to the given output stream,
whitespace characters will be ignored.
|
static java.lang.String |
encode(byte[] data) |
Encodes the input data producing a Hex output stream.
|
static int |
encode(byte[] data,
int off,
int length,
java.io.OutputStream out) |
Encodes the input data producing a Hex output stream.
|
protected static void |
initialiseDecodingTable() |
Initialize the decoding table.
|
public static final java.lang.String DATA_TYPE
protected static final byte[] ENCODING_TABLE
protected static final byte[] DECODING_TABLE
protected static void initialiseDecodingTable()
public static int encode(byte[] data,
int off,
int length,
java.io.OutputStream out)
throws java.io.IOException
data - The input data to be HEX encodedoff - Initiak offsetlength - Initial length of the input data arrayout - The OutputStream instance holding the encoded input data.java.io.IOException - If encoding fails.public static int decode(byte[] data,
int off,
int length,
java.io.OutputStream out)
throws java.io.IOException
data - The data to be encodedoff - Initial offset.length - Initial lengthout - The OutputStream instancejava.io.IOException - If encoding failed.public static int decode(java.lang.String data,
java.io.OutputStream out)
throws java.io.IOException
data - The data to be encodedout - The OutputStream instancejava.io.IOException - If encoding failed.public static java.lang.String encode(byte[] data)
data - Input data to encode.public static byte[] decode(java.lang.String data)
data - Input data to be decoded.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com