org.bouncycastle.util.encoders
Class HexTranslator
public
class
HexTranslator
extends Object
implements Translator
Converters for going from hex to binary and back. Note: this class assumes ASCII processing.
Method Summary |
int | decode(byte[] in, int inOff, int length, byte[] out, int outOff) |
int | encode(byte[] in, int inOff, int length, byte[] out, int outOff) |
int | getDecodedBlockSize()
size of the output block on decoding produced by getEncodedBlockSize()
bytes. |
int | getEncodedBlockSize()
size of the output block on encoding produced by getDecodedBlockSize()
bytes. |
public int decode(byte[] in, int inOff, int length, byte[] out, int outOff)
public int encode(byte[] in, int inOff, int length, byte[] out, int outOff)
public int getDecodedBlockSize()
size of the output block on decoding produced by getEncodedBlockSize()
bytes.
public int getEncodedBlockSize()
size of the output block on encoding produced by getDecodedBlockSize()
bytes.