public class CharsetDecoderBlock extends PipelineBlock<byte[],char[]>
PipelineBlock, which converts stream of bytes supplied as byte[] arrays to an array of char[] using
the specified encoding. Decoding errors (malformed input and unmappable characters) are to handled by dropping
the erroneous input, appending the coder's replacement value to the output buffer, and resuming the coding operation.| Modifier and Type | Field and Description |
|---|---|
static char[] |
EMPTY_PORTION
Empty portion.
|
| Constructor and Description |
|---|
CharsetDecoderBlock(Charset charset)
Creates charset decoder block.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(byte[] data,
boolean isLastAppend)
Accepts a portion of input.
|
appendpublic CharsetDecoderBlock(Charset charset)
charset - The charset encoding to decode bytes from.public void accept(byte[] data,
boolean isLastAppend)
throws IgniteCheckedException
isLastPortion parameter should be set if this is a last portion
of the input. The method must not be called after the end of input: the call with isLastPortion == true
is the last one.accept in class PipelineBlock<byte[],char[]>data - Portion of input.isLastAppend - Is this the last portion.IgniteCheckedException - On error.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021