public class B2CConverter extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
LEFTOVER_SIZE |
Constructor and Description |
---|
B2CConverter(String encoding) |
B2CConverter(String encoding,
boolean replaceOnError) |
Modifier and Type | Method and Description |
---|---|
void |
convert(ByteChunk bc,
CharChunk cc,
boolean endOfInput)
Convert the given bytes to characters.
|
static Charset |
getCharset(String enc) |
static Charset |
getCharsetLower(String lowerCaseEnc)
Only to be used when it is known that the encoding name is in lower case.
|
void |
recycle()
Reset the decoder state.
|
protected static final int LEFTOVER_SIZE
public B2CConverter(String encoding) throws IOException
IOException
public B2CConverter(String encoding, boolean replaceOnError) throws IOException
IOException
public static Charset getCharset(String enc) throws UnsupportedEncodingException
UnsupportedEncodingException
public static Charset getCharsetLower(String lowerCaseEnc) throws UnsupportedEncodingException
UnsupportedEncodingException
public void recycle()
public void convert(ByteChunk bc, CharChunk cc, boolean endOfInput) throws IOException
bc
- byte inputcc
- char outputendOfInput
- Is this all of the available dataIOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.