File tree Expand file tree Collapse file tree
msgpack-core/src/main/java/org/msgpack/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828public class MessageBufferPacker
2929 extends MessagePacker
3030{
31- public MessageBufferPacker (MessagePack .PackerConfig config )
31+ protected MessageBufferPacker (MessagePack .PackerConfig config )
3232 {
3333 this (new ArrayBufferOutput (), config );
3434 }
3535
36- public MessageBufferPacker (ArrayBufferOutput out , MessagePack .PackerConfig config )
36+ protected MessageBufferPacker (ArrayBufferOutput out , MessagePack .PackerConfig config )
3737 {
3838 super (out , config );
3939 }
Original file line number Diff line number Diff line change @@ -105,12 +105,13 @@ public class MessagePacker
105105 private CharsetEncoder encoder ;
106106
107107 /**
108- * Create an MessagePacker that outputs the packed data to the given {@link org.msgpack.core.buffer.MessageBufferOutput}
108+ * Create an MessagePacker that outputs the packed data to the given {@link org.msgpack.core.buffer.MessageBufferOutput}.
109+ * This method is available for subclasses to override. Use MessagePack.PackerConfig.newPacker method to instanciate this implementation.
109110 *
110111 * @param out MessageBufferOutput. Use {@link org.msgpack.core.buffer.OutputStreamBufferOutput}, {@link org.msgpack.core.buffer.ChannelBufferOutput} or
111112 * your own implementation of {@link org.msgpack.core.buffer.MessageBufferOutput} interface.
112113 */
113- public MessagePacker (MessageBufferOutput out , MessagePack .PackerConfig config )
114+ protected MessagePacker (MessageBufferOutput out , MessagePack .PackerConfig config )
114115 {
115116 this .out = checkNotNull (out , "MessageBufferOutput is null" );
116117 // We must copy the configuration parameters here since the config object is mutable
Original file line number Diff line number Diff line change @@ -122,11 +122,12 @@ public class MessageUnpacker
122122 private CharBuffer decodeBuffer ;
123123
124124 /**
125- * Create an MessageUnpacker that reads data from the given MessageBufferInput
125+ * Create an MessageUnpacker that reads data from the given MessageBufferInput.
126+ * This method is available for subclasses to override. Use MessagePack.UnpackerConfig.newUnpacker method to instanciate this implementation.
126127 *
127128 * @param in
128129 */
129- public MessageUnpacker (MessageBufferInput in , MessagePack .UnpackerConfig config )
130+ protected MessageUnpacker (MessageBufferInput in , MessagePack .UnpackerConfig config )
130131 {
131132 this .in = checkNotNull (in , "MessageBufferInput is null" );
132133 // We need to copy the configuration parameters since the config object is mutable
You can’t perform that action at this time.
0 commit comments