File tree Expand file tree Collapse file tree 14 files changed +32
-17
lines changed
Expand file tree Collapse file tree 14 files changed +32
-17
lines changed Original file line number Diff line number Diff line change 1919
2020import org .msgpack .MessageTypeException ;
2121
22- final class PackerStack {
22+ public final class PackerStack {
2323 private int top ;
2424 private byte [] types ;
2525 private int [] counts ;
2626
27- static final int MAX_STACK_SIZE = 128 ;
27+ public static final int MAX_STACK_SIZE = 128 ;
28+
2829 private static final byte TYPE_INVALID = 0 ;
2930 private static final byte TYPE_ARRAY = 1 ;
3031 private static final byte TYPE_MAP = 2 ;
Original file line number Diff line number Diff line change 2121import org .msgpack .type .Value ;
2222import org .msgpack .type .ValueFactory ;
2323
24- final class UnpackerStack {
24+ public final class UnpackerStack {
2525 private int top ;
2626 private byte [] types ;
2727 private int [] counts ;
2828
29- static final int MAX_STACK_SIZE = 128 ;
29+ public static final int MAX_STACK_SIZE = 128 ;
30+
3031 private static final byte TYPE_INVALID = 0 ;
3132 private static final byte TYPE_ARRAY = 1 ;
3233 private static final byte TYPE_MAP = 2 ;
Original file line number Diff line number Diff line change 1515// See the License for the specific language governing permissions and
1616// limitations under the License.
1717//
18- package org .msgpack ;
18+ package org .msgpack . util . json ;
1919
2020import java .io .InputStream ;
2121import java .io .OutputStream ;
2222import java .nio .ByteBuffer ;
23+ import org .msgpack .MessagePack ;
24+ import org .msgpack .MessageTypeException ;
2325import org .msgpack .packer .Packer ;
2426import org .msgpack .packer .BufferPacker ;
25- import org .msgpack .packer .JSONPacker ;
26- import org .msgpack .packer .JSONBufferPacker ;
2727import org .msgpack .unpacker .Unpacker ;
2828import org .msgpack .unpacker .BufferUnpacker ;
29- import org .msgpack .unpacker .JSONUnpacker ;
30- import org .msgpack .unpacker .JSONBufferUnpacker ;
3129
3230
3331public class JSON extends MessagePack {
Original file line number Diff line number Diff line change 1515// See the License for the specific language governing permissions and
1616// limitations under the License.
1717//
18- package org .msgpack .packer ;
18+ package org .msgpack .util . json ;
1919
2020import org .msgpack .MessagePack ;
2121import org .msgpack .io .Output ;
2222import org .msgpack .io .LinkedBufferOutput ;
23+ import org .msgpack .packer .Packer ;
24+ import org .msgpack .packer .BufferPacker ;
2325
2426
2527public class JSONBufferPacker extends JSONPacker implements BufferPacker {
Original file line number Diff line number Diff line change 1515// See the License for the specific language governing permissions and
1616// limitations under the License.
1717//
18- package org .msgpack .unpacker ;
18+ package org .msgpack .util . json ;
1919
2020import java .io .IOException ;
2121import java .io .EOFException ;
2626import org .msgpack .MessagePack ;
2727import org .msgpack .MessageTypeException ;
2828import org .msgpack .type .Value ;
29+ import org .msgpack .unpacker .Unpacker ;
30+ import org .msgpack .unpacker .BufferUnpacker ;
2931
3032
3133public class JSONBufferUnpacker extends JSONUnpacker implements BufferUnpacker {
Original file line number Diff line number Diff line change 1515// See the License for the specific language governing permissions and
1616// limitations under the License.
1717//
18- package org .msgpack .packer ;
18+ package org .msgpack .util . json ;
1919
2020import java .io .IOException ;
2121import java .io .OutputStream ;
3131import org .msgpack .io .StreamOutput ;
3232import org .msgpack .MessagePack ;
3333import org .msgpack .MessageTypeException ;
34+ import org .msgpack .packer .Packer ;
35+ import org .msgpack .packer .AbstractPacker ;
36+ import org .msgpack .packer .PackerStack ;
3437
3538
3639public class JSONPacker extends AbstractPacker {
Original file line number Diff line number Diff line change 1515// See the License for the specific language governing permissions and
1616// limitations under the License.
1717//
18- package org .msgpack .unpacker ;
18+ package org .msgpack .util . json ;
1919
2020import java .io .IOException ;
2121import java .io .EOFException ;
3333//import org.msgpack.io.StreamInput;
3434import org .msgpack .MessagePack ;
3535import org .msgpack .MessageTypeException ;
36+ import org .msgpack .unpacker .Unpacker ;
37+ import org .msgpack .unpacker .Converter ;
3638import org .msgpack .type .Value ;
3739import org .msgpack .type .ValueFactory ;
3840
Original file line number Diff line number Diff line change 1717import org .junit .Test ;
1818import org .msgpack .packer .BufferPacker ;
1919import org .msgpack .unpacker .Unpacker ;
20+ import org .msgpack .util .json .JSON ;
2021
2122
2223public class TestJSONBufferPackBufferUnpack extends TestSet {
Original file line number Diff line number Diff line change 1717import org .junit .Test ;
1818import org .msgpack .packer .BufferPacker ;
1919import org .msgpack .unpacker .Unpacker ;
20+ import org .msgpack .util .json .JSON ;
2021
2122
2223public class TestJSONBufferPackUnpack extends TestSet {
Original file line number Diff line number Diff line change 1818import org .junit .Test ;
1919import org .msgpack .packer .Packer ;
2020import org .msgpack .unpacker .Unpacker ;
21+ import org .msgpack .util .json .JSON ;
2122
2223
2324public class TestJSONPackBufferUnpack extends TestSet {
You can’t perform that action at this time.
0 commit comments