org.apache.geronimo.util.encoders
Class BufferedEncoder
java.lang.Object
org.apache.geronimo.util.encoders.BufferedEncoder
public class BufferedEncoder
- extends Object
a buffering class to allow translation from one format to another to
be done in discrete chunks.
Method Summary |
int |
processByte(byte in,
byte[] out,
int outOff)
|
int |
processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buf
protected byte[] buf
bufOff
protected int bufOff
translator
protected Translator translator
BufferedEncoder
public BufferedEncoder(Translator translator,
int bufSize)
- Parameters:
translator
- the translator to use.bufSize
- amount of input to buffer for each chunk.
processByte
public int processByte(byte in,
byte[] out,
int outOff)
processBytes
public int processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
Copyright © 2006 Apache Software Foundation. All Rights Reserved.