public class B2CConverter
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected static int |
LEFTOVER_SIZE |
Constructor | Description |
---|---|
B2CConverter(java.nio.charset.Charset charset) |
|
B2CConverter(java.nio.charset.Charset charset,
boolean replaceOnError) |
Modifier and Type | Method | Description |
---|---|---|
void |
convert(java.nio.ByteBuffer bc,
java.nio.CharBuffer cc,
ByteChunk.ByteInputChannel ic,
boolean endOfInput) |
Convert the given bytes to characters.
|
void |
convert(ByteChunk bc,
CharChunk cc,
boolean endOfInput) |
Convert the given bytes to characters.
|
java.nio.charset.Charset |
getCharset() |
|
static java.nio.charset.Charset |
getCharset(java.lang.String enc) |
Obtain the Charset for the given encoding
|
void |
recycle() |
Reset the decoder state.
|
protected static final int LEFTOVER_SIZE
public B2CConverter(java.nio.charset.Charset charset)
public B2CConverter(java.nio.charset.Charset charset, boolean replaceOnError)
public static java.nio.charset.Charset getCharset(java.lang.String enc) throws java.io.UnsupportedEncodingException
enc
- The name of the encoding for the required charsetjava.io.UnsupportedEncodingException
- If the requested Charset is not
availablepublic void recycle()
public void convert(ByteChunk bc, CharChunk cc, boolean endOfInput) throws java.io.IOException
bc
- byte inputcc
- char outputendOfInput
- Is this all of the available datajava.io.IOException
- If the conversion can not be completedpublic void convert(java.nio.ByteBuffer bc, java.nio.CharBuffer cc, ByteChunk.ByteInputChannel ic, boolean endOfInput) throws java.io.IOException
bc
- byte inputcc
- char outputic
- byte input channelendOfInput
- Is this all of the available datajava.io.IOException
- If the conversion can not be completedpublic java.nio.charset.Charset getCharset()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.