public class B2CConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.nio.charset.Charset |
ISO_8859_1 |
protected static int |
LEFTOVER_SIZE |
static java.nio.charset.Charset |
UTF_8 |
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.
|
public static final java.nio.charset.Charset ISO_8859_1
public static final java.nio.charset.Charset UTF_8
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-2015 Apache Software Foundation. All Rights Reserved.