public class B2CConverter
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
B2CConverter() |
|
B2CConverter(java.lang.String encoding)
Create a converter, with bytes going to a byte buffer
|
Modifier and Type | Method and Description |
---|---|
void |
convert(ByteChunk bb,
CharChunk cb)
Deprecated.
|
void |
convert(ByteChunk bb,
CharChunk cb,
int limit)
Convert a buffer of bytes into a chars.
|
static java.nio.charset.Charset |
getCharset(java.lang.String enc) |
void |
recycle()
Reset the internal state, empty the buffers.
|
void |
reset() |
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) throws java.io.IOException
java.io.IOException
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-2013 Apache Software Foundation. All Rights Reserved.