Package org.jsonex.jsoncoder
Class JSONCoder
- java.lang.Object
-
- org.jsonex.jsoncoder.JSONCoder
-
public class JSONCoder extends Object
-
-
Constructor Summary
Constructors Constructor Description JSONCoder(JSONCoderOption option)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tdecode(Reader reader, Class<T> type)static <T> Tdecode(Reader reader, Class<T> type, JSONCoderOption opt)<T> Tdecode(String str, Class<T> type)static <T> Tdecode(String jsonStr, Class<T> type, JSONCoderOption opt)<T> Tdecode(org.jsonex.core.charsource.CharSource source, Class<T> type)static <T> Tdecode(org.jsonex.core.charsource.CharSource source, Class<T> type, JSONCoderOption opt)<T> Tdecode(DecodeReq<T> req)static <T> Tdecode(DecodeReq<T> req, JSONCoderOption opt)<T> Tdecode(TDNode treeDocNode, Class<T> type)static <T> Tdecode(TDNode treeDocNode, Class<T> type, JSONCoderOption opt)<T> TdecodeTo(String str, T target)static <T> TdecodeTo(String str, T target, JSONCoderOption opt)Stringencode(Object obj)voidencode(Object obj, Writer writer)static voidencode(Object obj, Writer writer, JSONCoderOption opt)static Stringencode(Object obj, JSONCoderOption opt)Stringencode(EncodeReq req)static Stringencode(EncodeReq req, JSONCoderOption opt)static JSONCoderget()
-
-
-
Constructor Detail
-
JSONCoder
public JSONCoder(JSONCoderOption option)
-
-
Method Detail
-
get
public static JSONCoder get()
-
decode
public static <T> T decode(DecodeReq<T> req, JSONCoderOption opt)
-
decode
public static <T> T decode(String jsonStr, Class<T> type, JSONCoderOption opt)
-
decode
public static <T> T decode(Reader reader, Class<T> type, JSONCoderOption opt)
-
decode
public static <T> T decode(org.jsonex.core.charsource.CharSource source, Class<T> type, JSONCoderOption opt)
-
decode
public static <T> T decode(TDNode treeDocNode, Class<T> type, JSONCoderOption opt)
-
decode
public <T> T decode(DecodeReq<T> req)
-
decodeTo
public <T> T decodeTo(String str, T target)
-
decodeTo
public static <T> T decodeTo(String str, T target, JSONCoderOption opt)
-
decode
public <T> T decode(org.jsonex.core.charsource.CharSource source, Class<T> type)
-
encode
public static String encode(EncodeReq req, JSONCoderOption opt)
- Parameters:
req-opt-- Returns:
-
encode
public static String encode(Object obj, JSONCoderOption opt)
-
encode
public static void encode(Object obj, Writer writer, JSONCoderOption opt)
-
-