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

public Class BufferedEncoder

extends Object
Class Inheritance

A buffering class to allow translation from one format to another to be done in discrete chunks.

Field Summary

Modifier and TypeField and Description
protected byte[]
protected int
protected Translator

Constructor Summary

AccessConstructor and Description
public
BufferedEncoder(Translator
the translator to use.
translator
,
int
amount of input to buffer for each chunk.
bufSize
)

Method Summary

Modifier and TypeMethod and Description
public int
processByte(byte in, byte[] out, int outOff)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufback to summary
protected byte[] buf
bufOffback to summary
protected int bufOff
translatorback to summary
protected Translator translator

Constructor Detail

BufferedEncoderback to summary
public BufferedEncoder(Translator translator, int bufSize)
Parameters
translator:Translator

the translator to use.

bufSize:int

amount of input to buffer for each chunk.

Method Detail

processByteback to summary
public int processByte(byte in, byte[] out, int outOff)
processBytesback to summary
public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff)