| Modifier and Type | Field and Description |
|---|---|
| private ByteBuffer | |
| private CharBuffer | |
| private static final CharsetCache | |
| private final CharsetDecoder | |
| protected static final int | |
| private final ByteBuffer | leftovers
Leftover buffer used for incomplete characters. |
| private static final Log | |
| private static final StringManager |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | convert(ByteBuffer
byte input bc, CharBuffer char output cc, ByteChunk.byte input channel ic,Is this all of the available data endOfInput)Convert the given bytes to characters. |
| public static Charset | Returns: The Charset corresponding to the requested encodingThe name of the encoding for the required charset enc)Obtain the Charset for the given encoding |
| public Charset | |
| public void |
| bb | back to summary |
|---|---|
| private ByteBuffer bb | |
| cb | back to summary |
|---|---|
| private CharBuffer cb | |
| charsetCache | back to summary |
|---|---|
| private static final CharsetCache charsetCache | |
| decoder | back to summary |
|---|---|
| private final CharsetDecoder decoder | |
| LEFTOVER_SIZE | back to summary |
|---|---|
| protected static final int LEFTOVER_SIZE | |
| leftovers | back to summary |
|---|---|
| private final ByteBuffer leftovers Leftover buffer used for incomplete characters. | |
| log | back to summary |
|---|---|
| private static final Log log | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| B2CConverter | back to summary |
|---|---|
| public B2CConverter(Charset charset) | |
| B2CConverter | back to summary |
|---|---|
| public B2CConverter(Charset charset, boolean replaceOnError) | |
| convert | back to summary |
|---|---|
| public void convert(ByteChunk bc, CharChunk cc, boolean endOfInput) throws IOException Convert the given bytes to characters.
| |
| convert | back to summary |
|---|---|
| public void convert(ByteBuffer bc, CharBuffer cc, ByteChunk. Convert the given bytes to characters.
| |
| getCharset | back to summary |
|---|---|
| public static Charset getCharset(String enc) throws UnsupportedEncodingException Obtain the Charset for the given encoding
| |
| getCharset | back to summary |
|---|---|
| public Charset getCharset() | |
| recycle | back to summary |
|---|---|
| public void recycle() Reset the decoder state. | |