Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.21
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.util.encoders
Interface Translator

All Known Implementing Classes:
  HexTranslator

public interface Translator

general interface for an translator.

Method Summary
`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.

Method Detail

### getEncodedBlockSize

    public int getEncodedBlockSize()

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

### 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.

### decode

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

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.21
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD