Top Description Fields Constructors Methods
org.bouncycastle.util.encoders

public Class HexTranslator

extends Object
implements Translator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.encoders.Translator

Converters for going from hex to binary and back.

Note

this class assumes ASCII processing.

Field Summary

Modifier and TypeField and Description
private static final byte[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
decode(byte[] in, int inOff, int length, byte[] out, int outOff)

Implements org.bouncycastle.util.encoders.Translator.decode.

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

Implements org.bouncycastle.util.encoders.Translator.encode.

public int
getDecodedBlockSize()

Implements org.bouncycastle.util.encoders.Translator.getDecodedBlockSize.

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

Implements org.bouncycastle.util.encoders.Translator.getEncodedBlockSize.

size of the output block on encoding produced by getDecodedBlockSize() bytes.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hexTableback to summary
private static final byte[] hexTable

Constructor Detail

HexTranslatorback to summary
public HexTranslator()

Method Detail

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

Implements org.bouncycastle.util.encoders.Translator.decode.

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

Implements org.bouncycastle.util.encoders.Translator.encode.

getDecodedBlockSizeback to summary
public int getDecodedBlockSize()

Implements org.bouncycastle.util.encoders.Translator.getDecodedBlockSize.

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

getEncodedBlockSizeback to summary
public int getEncodedBlockSize()

Implements org.bouncycastle.util.encoders.Translator.getEncodedBlockSize.

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