Package org.jsonex.jsoncoder
Class DecodeReq<T>
- java.lang.Object
-
- org.jsonex.jsoncoder.DecodeReq<T>
-
public abstract class DecodeReq<T> extends Object
Decode Request, the reason we use abstract class, is to force to create a sub-class so that it's possible to get the getActualTypeArguments. If generic type is not of the concern, use factory method "of".It can be used to specify source of the JSON document, either through a String, Reader, or a a wrapped CharSource. As
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypegetType()static <T> DecodeReq<T>of(Class<T> cls)static <T> DecodeReq<T>of(Type type)DecodeReq<T>setJson(String jsonStr)Set source of a json stringDecodeReq<T>setReader(Reader reader)Set source with a reader
-