org.bouncycastle.util.encoders

Class BufferedDecoder

public class BufferedDecoder extends Object

a buffering class to allow translation from one format to another to be done in discrete chunks.
Field Summary
protected byte[]buf
protected intbufOff
protected Translatortranslator
Constructor Summary
BufferedDecoder(Translator translator, int bufSize)
Method Summary
intprocessByte(byte in, byte[] out, int outOff)
intprocessBytes(byte[] in, int inOff, int len, byte[] out, int outOff)

Field Detail

buf

protected byte[] buf

bufOff

protected int bufOff

translator

protected Translator translator

Constructor Detail

BufferedDecoder

public BufferedDecoder(Translator translator, int bufSize)

Parameters: translator the translator to use. bufSize amount of input to buffer for each chunk.

Method Detail

processByte

public int processByte(byte in, byte[] out, int outOff)

processBytes

public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff)