Package org.bouncycastle.util.encoders
Class HexTranslator
- java.lang.Object
 - 
- org.bouncycastle.util.encoders.HexTranslator
 
 
- 
- All Implemented Interfaces:
 Translator
public class HexTranslator extends java.lang.Object implements Translator
Converters for going from hex to binary and back. Note: this class assumes ASCII processing. 
- 
- 
Constructor Summary
Constructors Constructor Description HexTranslator() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
- 
getEncodedBlockSize
public int getEncodedBlockSize()
size of the output block on encoding produced by getDecodedBlockSize() bytes.- Specified by:
 getEncodedBlockSizein interfaceTranslator
 
- 
encode
public int encode(byte[] in, int inOff, int length, byte[] out, int outOff)- Specified by:
 encodein interfaceTranslator
 
- 
getDecodedBlockSize
public int getDecodedBlockSize()
size of the output block on decoding produced by getEncodedBlockSize() bytes.- Specified by:
 getDecodedBlockSizein interfaceTranslator
 
- 
decode
public int decode(byte[] in, int inOff, int length, byte[] out, int outOff)- Specified by:
 decodein interfaceTranslator
 
 - 
 
 -