public static class MessagePack.UnpackerConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.nio.charset.CodingErrorAction |
actionOnMalformedString
Action when encountered a malformed input
|
java.nio.charset.CodingErrorAction |
actionOnUnmappableString
Action when an unmappable character is found
|
boolean |
allowReadingBinaryAsString
Allow unpackRawStringHeader and unpackString to read bin format family (default: true)
|
boolean |
allowReadingStringAsBinary
Allow unpackBinaryHeader to read str format family (default:true)
|
int |
stringDecoderBufferSize |
int |
stringSizeLimit
unpackString size limit.
|
Constructor and Description |
---|
UnpackerConfig() |
Modifier and Type | Method and Description |
---|---|
MessageUnpacker |
newUnpacker(byte[] contents)
Create an unpacker that reads the data from a given byte array
|
MessageUnpacker |
newUnpacker(byte[] contents,
int offset,
int length)
Create an unpacker that reads the data from a given byte array [offset, offset+size)
|
MessageUnpacker |
newUnpacker(java.io.InputStream in)
Create an unpacker that reads the data from a given input stream
|
MessageUnpacker |
newUnpacker(MessageBufferInput in)
Create an unpacker that reads the data from a given input
|
MessageUnpacker |
newUnpacker(java.nio.channels.ReadableByteChannel channel)
Create an unpacker that reads the data from a given channel
|
public boolean allowReadingStringAsBinary
public boolean allowReadingBinaryAsString
public java.nio.charset.CodingErrorAction actionOnMalformedString
public java.nio.charset.CodingErrorAction actionOnUnmappableString
public int stringSizeLimit
public int stringDecoderBufferSize
public MessageUnpacker newUnpacker(MessageBufferInput in)
in
- public MessageUnpacker newUnpacker(java.io.InputStream in)
in
- public MessageUnpacker newUnpacker(java.nio.channels.ReadableByteChannel channel)
channel
- public MessageUnpacker newUnpacker(byte[] contents)
contents
- public MessageUnpacker newUnpacker(byte[] contents, int offset, int length)
contents
-