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
intdecode(byte[] in, int inOff, int length, byte[] out, int outOff)
intencode(byte[] in, int inOff, int length, byte[] out, int outOff)
intgetDecodedBlockSize()
size of the output block on decoding produced by getEncodedBlockSize() bytes.
intgetEncodedBlockSize()
size of the output block on encoding produced by getDecodedBlockSize() bytes.

Method Detail

decode

public int decode(byte[] in, int inOff, int length, byte[] out, int outOff)

encode

public int encode(byte[] in, int inOff, int length, byte[] out, int outOff)

getDecodedBlockSize

public int getDecodedBlockSize()
size of the output block on decoding produced by getEncodedBlockSize() bytes.

getEncodedBlockSize

public int getEncodedBlockSize()
size of the output block on encoding produced by getDecodedBlockSize() bytes.