public final class UTF8Decoder extends B2CConverter
| Constructor and Description |
|---|
UTF8Decoder() |
| Modifier and Type | Method and Description |
|---|---|
int |
convert(Buffer buffer,
int srcOff,
char[] c,
int dstOff,
int length)
Converts the
Buffer to char[] using UTF8 encoding. |
int |
convert(byte[] buffer,
int srcOff,
char[] c,
int dstOff,
int length)
Converts the
Buffer to char[] using UTF8 encoding. |
void |
convert(ByteChunk mb,
CharChunk cb)
Convert a buffer of bytes into a chars
|
void |
recycle()
Reset the internal state, empty the buffers.
|
convert, convertASCII, init, resetpublic void recycle()
B2CConverterrecycle in class B2CConverterpublic void convert(ByteChunk mb, CharChunk cb) throws java.io.IOException
B2CConverterconvert in class B2CConverterjava.io.IOExceptionpublic int convert(Buffer buffer, int srcOff, char[] c, int dstOff, int length) throws java.io.IOException
Buffer to char[] using UTF8 encoding.public int convert(byte[] buffer,
int srcOff,
char[] c,
int dstOff,
int length)
throws java.io.IOException
Buffer to char[] using UTF8 encoding.Copyright © 2013 Oracle Corporation. All Rights Reserved.