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