org.bouncycastle.util.encoders
Class HexEncoder
java.lang.Object
org.bouncycastle.util.encoders.HexEncoder
- Encoder
public class HexEncoder
extends java.lang.Object
int | decode(String data, OutputStream out) - decode the Hex encoded String data writing it to the given output stream,
whitespace characters will be ignored.
|
int | decode(byte[] data, int off, int length, OutputStream out) - decode the Hex encoded byte data writing it to the given output stream,
whitespace characters will be ignored.
|
int | encode(byte[] data, int off, int length, OutputStream out) - encode the input data producing a Hex output stream.
|
protected void | initialiseDecodingTable()
|
decodingTable
protected final byte[] decodingTable
encodingTable
protected final byte[] encodingTable
HexEncoder
public HexEncoder()
decode
public int decode(String data,
OutputStream out)
throws IOException
decode the Hex encoded String data writing it to the given output stream,
whitespace characters will be ignored.
- decode in interface Encoder
- the number of bytes produced.
decode
public int decode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
decode the Hex encoded byte data writing it to the given output stream,
whitespace characters will be ignored.
- decode in interface Encoder
- the number of bytes produced.
encode
public int encode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
encode the input data producing a Hex output stream.
- encode in interface Encoder
- the number of bytes produced.
initialiseDecodingTable
protected void initialiseDecodingTable()