public class B2CConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.nio.ByteBuffer |
bb |
protected java.nio.CharBuffer |
cb |
protected java.nio.charset.CharsetDecoder |
decoder |
protected java.nio.ByteBuffer |
leftovers
Leftover buffer used for incomplete characters.
|
protected static Logger |
log |
Constructor and Description |
---|
B2CConverter(java.lang.String charset)
Create a decoder for the specified charset.
|
Modifier and Type | Method and Description |
---|---|
void |
convert(ByteChunk bc,
CharChunk cc)
Convert the given bytes to characters.
|
boolean |
isUndeflow() |
void |
recycle()
Reset the decoder state, and empty the leftover buffer.
|
protected static Logger log
protected java.nio.charset.CharsetDecoder decoder
protected java.nio.ByteBuffer bb
protected java.nio.CharBuffer cb
protected java.nio.ByteBuffer leftovers
public B2CConverter(java.lang.String charset) throws java.io.IOException
java.io.IOException