org.msgpack.core
Class MessagePack.Config

java.lang.Object
  extended by org.msgpack.core.MessagePack.Config
Enclosing class:
MessagePack

public static class MessagePack.Config
extends java.lang.Object

Message packer/unpacker configuration object


Constructor Summary
MessagePack.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)
           
 
Method Summary
 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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagePack.Config

public MessagePack.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)
Method Detail

isReadStringAsBinary

public boolean isReadStringAsBinary()
allow unpackBinaryHeader to read str format family (default:true)


isReadBinaryAsString

public boolean isReadBinaryAsString()
allow unpackRawStringHeader and unpackString to read bin format family (default: true)


getActionOnMalFormedInput

public java.nio.charset.CodingErrorAction getActionOnMalFormedInput()
Action when encountered a malformed input


getActionOnUnmappableCharacter

public java.nio.charset.CodingErrorAction getActionOnUnmappableCharacter()
Action when an unmappable character is found


getMaxUnpackStringSize

public int getMaxUnpackStringSize()
unpackString size limit. (default: Integer.MAX_VALUE)


getStringEncoderBufferSize

public int getStringEncoderBufferSize()

getStringDecoderBufferSize

public int getStringDecoderBufferSize()

getPackerBufferSize

public int getPackerBufferSize()

getPackerRawDataCopyingThreshold

public int getPackerRawDataCopyingThreshold()