public final class C2BConverter
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected java.nio.ByteBuffer | bb | 
| protected java.nio.CharBuffer | cb | 
| protected java.nio.charset.CharsetEncoder | encoder | 
| protected java.nio.CharBuffer | leftoversLeftover buffer used for multi-characters characters. | 
| Constructor and Description | 
|---|
| C2BConverter(java.lang.String encoding) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | convert(CharChunk cc,
ByteChunk bc)Convert the given characters to bytes. | 
| boolean | isUndeflow() | 
| void | recycle()Reset the encoder state. | 
protected java.nio.charset.CharsetEncoder encoder
protected java.nio.ByteBuffer bb
protected java.nio.CharBuffer cb
protected java.nio.CharBuffer leftovers
public C2BConverter(java.lang.String encoding)
             throws java.io.IOException
java.io.IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.