public static class MessagePack.Config
extends java.lang.Object
Constructor and Description |
---|
Config(boolean readStringAsBinary,
boolean readBinaryAsString,
java.nio.charset.CodingErrorAction onMalFormedInput,
java.nio.charset.CodingErrorAction onUnmappableCharacter,
int maxUnpackStringSize,
int stringEncoderBufferSize,
int stringDecoderBufferSize,
int packerBufferSize,
int packerRawDataCopyingThreshold) |
Modifier and Type | Method and Description |
---|---|
java.nio.charset.CodingErrorAction |
getActionOnMalFormedInput()
Action when encountered a malformed input
|
java.nio.charset.CodingErrorAction |
getActionOnUnmappableCharacter()
Action when an unmappable character is found
|
int |
getMaxUnpackStringSize()
unpackString size limit.
|
int |
getPackerBufferSize() |
int |
getPackerRawDataCopyingThreshold() |
int |
getStringDecoderBufferSize() |
int |
getStringEncoderBufferSize() |
boolean |
isReadBinaryAsString()
allow unpackRawStringHeader and unpackString to read bin format family (default: true)
|
boolean |
isReadStringAsBinary()
allow unpackBinaryHeader to read str format family (default:true)
|
public Config(boolean readStringAsBinary, boolean readBinaryAsString, java.nio.charset.CodingErrorAction onMalFormedInput, java.nio.charset.CodingErrorAction onUnmappableCharacter, int maxUnpackStringSize, int stringEncoderBufferSize, int stringDecoderBufferSize, int packerBufferSize, int packerRawDataCopyingThreshold)
public boolean isReadStringAsBinary()
public boolean isReadBinaryAsString()
public java.nio.charset.CodingErrorAction getActionOnMalFormedInput()
public java.nio.charset.CodingErrorAction getActionOnUnmappableCharacter()
public int getMaxUnpackStringSize()
public int getStringEncoderBufferSize()
public int getStringDecoderBufferSize()
public int getPackerBufferSize()
public int getPackerRawDataCopyingThreshold()