public class B2CConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.nio.charset.Charset |
ISO_8859_1 |
static java.nio.charset.Charset |
UTF_8 |
Modifier | Constructor and Description |
---|---|
protected |
B2CConverter()
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
|
B2CConverter(java.lang.String encoding)
Create a converter, with bytes going to a byte buffer
|
public static final java.nio.charset.Charset ISO_8859_1
public static final java.nio.charset.Charset UTF_8
@Deprecated protected B2CConverter()
public B2CConverter(java.lang.String encoding) 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 void recycle()
public void convert(ByteChunk bb, CharChunk cb, int limit) throws java.io.IOException
bb
- Input byte buffercb
- Output char bufferlimit
- Number of bytes to convertjava.io.IOException
public void reset() throws java.io.IOException
java.io.IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.