public class B2CConverter
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static int |
LEFTOVER_SIZE |
| 构造器和说明 |
|---|
B2CConverter(java.lang.String encoding) |
B2CConverter(java.lang.String encoding,
boolean replaceOnError) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.IOExceptionpublic B2CConverter(java.lang.String encoding,
boolean replaceOnError)
throws java.io.IOException
java.io.IOExceptionpublic static java.nio.charset.Charset getCharset(java.lang.String enc)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static java.nio.charset.Charset getCharsetLower(java.lang.String lowerCaseEnc)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic void recycle()
Copyright © 2001-2014 hynnet.com