public class

HexTranslator

extends Object
implements Translator
java.lang.Object
   ↳ org.bouncycastle.util.encoders.HexTranslator

Class Overview

Converters for going from hex to binary and back. Note: this class assumes ASCII processing.

Summary

Public Constructors
HexTranslator()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.util.encoders.Translator

Public Constructors

public HexTranslator ()

Public Methods

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.