public class HexEncoder
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
decodingTable |
protected byte[] |
encodingTable |
| 构造器和说明 |
|---|
HexEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
decode(byte[] data,
int off,
int length,
java.io.OutputStream out)
decode the Hex encoded byte data writing it to the given output stream, whitespace characters
will be ignored.
|
int |
decode(java.lang.String data,
java.io.OutputStream out)
decode the Hex encoded String data writing it to the given output stream, whitespace
characters will be ignored.
|
int |
encode(byte[] data,
int off,
int length,
java.io.OutputStream out)
encode the input data producing a Hex output stream.
|
protected void |
initialiseDecodingTable() |
protected final byte[] encodingTable
protected final byte[] decodingTable
protected void initialiseDecodingTable()
public int encode(byte[] data,
int off,
int length,
java.io.OutputStream out)
throws java.io.IOException
data - the input byte arrayoff - the offset of the data to be convertedlength - the length of the data to be convertedout - the output streamjava.io.IOException - the I/O exceptionpublic int decode(byte[] data,
int off,
int length,
java.io.OutputStream out)
throws java.io.IOException
data - the input byte arrayoff - the offset of the data to be convertedlength - the length of the data to be convertedout - the output streamjava.io.IOException - the I/O exceptionpublic int decode(java.lang.String data,
java.io.OutputStream out)
throws java.io.IOException
data - the input byte arrayout - the output streamjava.io.IOException - the I/O exception