public class JobInfoJsonDecoderResolver
extends java.lang.Object
Distributed Cut Diagram Module Object Deserializer Solver.
Constructor and Description |
---|
JobInfoJsonDecoderResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecoder(java.lang.Class clz)
Determines whether the target type can be processed by the current JSON deserializer.
|
java.lang.Object |
toObject(java.lang.String jsonStr, java.lang.Class cl)
Truncates the JSON string into a specified type of object.
|
java.lang.Object |
toObject(java.lang.String jsonStr, java.lang.Class cl, DecoderSetting decoderSetting)
Truncates the JSON string into a specified type of object.
|
public boolean canDecoder(java.lang.Class clz)
Determines whether the target type can be processed by the current JSON deserializer.
clz
- target class.public java.lang.Object toObject(java.lang.String jsonStr, java.lang.Class cl) throws JSONException
Truncates the JSON string into a specified type of object.
jsonStr
- The JSON string to parse.cl
- Specifies the type of target to be serialized.JSONException
public java.lang.Object toObject(java.lang.String jsonStr, java.lang.Class cl, DecoderSetting decoderSetting) throws JSONException
Truncates the JSON string into a specified type of object.
jsonStr
- The JSON string to parse.cl
- Specifies the type of target to be serialized.decoderSetting
- The deserializer parses the configuration item of the object.JSONException