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, reset
public void recycle()
B2CConverter
recycle
in class B2CConverter
public void convert(ByteChunk mb, CharChunk cb) throws IOException
B2CConverter
convert
in class B2CConverter
IOException
public int convert(Buffer buffer, int srcOff, char[] c, int dstOff, int length) throws IOException
Buffer
to char[] using UTF8 encoding.buffer
- source Buffer
srcOff
- offset in source Buffer
c
- dest. char arraydstOff
- initial offset in the dest. char arraylength
- number of bytes to convertIOException
public int convert(byte[] buffer, int srcOff, char[] c, int dstOff, int length) throws IOException
Buffer
to char[] using UTF8 encoding.buffer
- source Buffer
srcOff
- offset in source Buffer
c
- dest. char arraydstOff
- initial offset in the dest. char arraylength
- number of bytes to convertIOException
Copyright © 2015 Oracle Corporation. All rights reserved.