public class B2CConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static Charset |
ISO_8859_1 |
static Charset |
UTF_8 |
| Modifier | Constructor and Description |
|---|---|
protected |
B2CConverter()
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
|
B2CConverter(String encoding)
Create a converter, with bytes going to a byte buffer
|
public static final Charset ISO_8859_1
public static final Charset UTF_8
@Deprecated protected B2CConverter()
public B2CConverter(String encoding) throws IOException
IOExceptionpublic static Charset getCharset(String enc) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void recycle()
public void convert(ByteChunk bb, CharChunk cb, int limit) throws IOException
bb - Input byte buffercb - Output char bufferlimit - Number of bytes to convertIOExceptionpublic void reset()
throws IOException
IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.