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 IOException
B2CConverterconvert in class B2CConverterIOExceptionpublic int convert(Buffer buffer, int srcOff, char[] c, int dstOff, int length) throws IOException
Buffer to char[] using UTF8 encoding.buffer - source BuffersrcOff - offset in source Bufferc - dest. char arraydstOff - initial offset in the dest. char arraylength - number of bytes to convertIOExceptionpublic int convert(byte[] buffer,
int srcOff,
char[] c,
int dstOff,
int length)
throws IOException
Buffer to char[] using UTF8 encoding.buffer - source BuffersrcOff - offset in source Bufferc - dest. char arraydstOff - initial offset in the dest. char arraylength - number of bytes to convertIOExceptionCopyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.