Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/main/java/org/msgpack/util/json/JSONUnpacker.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.List;
import java.util.Map;
import java.util.Iterator;
import java.nio.charset.Charset;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import org.msgpack.MessagePack;
Expand All @@ -42,6 +43,10 @@ public JSONUnpacker(InputStream in) {
public JSONUnpacker(MessagePack msgpack, InputStream in) {
this(msgpack, new InputStreamReader(in));
}

public JSONUnpacker(MessagePack msgpack, InputStream in, Charset cs) {
this(msgpack, new InputStreamReader(in, cs));
}

JSONUnpacker(MessagePack msgpack, Reader in) {
super(msgpack, null);
Expand Down