public class B2CConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
LEFTOVER_SIZE |
Constructor and Description |
---|
B2CConverter(java.lang.String encoding) |
B2CConverter(java.lang.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 java.nio.charset.Charset |
getCharset(java.lang.String enc) |
static java.nio.charset.Charset |
getCharsetLower(java.lang.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(java.lang.String encoding) throws java.io.IOException
java.io.IOException
public B2CConverter(java.lang.String encoding, boolean replaceOnError) throws java.io.IOException
java.io.IOException
public static java.nio.charset.Charset getCharset(java.lang.String enc) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static java.nio.charset.Charset getCharsetLower(java.lang.String lowerCaseEnc) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void recycle()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.