We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd988e3 commit acd92b8Copy full SHA for acd92b8
src/main/java/org/msgpack/util/json/JSONUnpacker.java
@@ -24,6 +24,7 @@
24
import java.util.List;
25
import java.util.Map;
26
import java.util.Iterator;
27
+import java.nio.charset.Charset;
28
import org.json.simple.parser.JSONParser;
29
import org.json.simple.parser.ParseException;
30
import org.msgpack.MessagePack;
@@ -42,6 +43,10 @@ public JSONUnpacker(InputStream in) {
42
43
public JSONUnpacker(MessagePack msgpack, InputStream in) {
44
this(msgpack, new InputStreamReader(in));
45
}
46
+
47
+ public JSONUnpacker(MessagePack msgpack, InputStream in, Charset cs) {
48
+ this(msgpack, new InputStreamReader(in, cs));
49
+ }
50
51
JSONUnpacker(MessagePack msgpack, Reader in) {
52
super(msgpack, null);
0 commit comments