com.supermap.services.rest.decoders
Class JobInfoJsonDecoderResolver
- java.lang.Object
-
- com.supermap.services.rest.decoders.JobInfoJsonDecoderResolver
-
public class JobInfoJsonDecoderResolver extends java.lang.ObjectDistributed Cut Diagram Module Object Deserializer Solver.
- Since:
- 7.0.0
-
-
Constructor Summary
Constructors Constructor and Description JobInfoJsonDecoderResolver()
-
Method Summary
Methods Modifier and Type Method and Description booleancanDecoder(java.lang.Class clz)Determines whether the target type can be processed by the current JSON deserializer.java.lang.ObjecttoObject(java.lang.String jsonStr, java.lang.Class cl)Truncates the JSON string into a specified type of object.java.lang.ObjecttoObject(java.lang.String jsonStr, java.lang.Class cl, DecoderSetting decoderSetting)Truncates the JSON string into a specified type of object.
-
-
-
Method Detail
-
canDecoder
public boolean canDecoder(java.lang.Class clz)
Determines whether the target type can be processed by the current JSON deserializer.
- Parameters:
clz- target class.- Returns:
- true is OK, false is not possible.
-
toObject
public java.lang.Object toObject(java.lang.String jsonStr, java.lang.Class cl) throws JSONExceptionTruncates the JSON string into a specified type of object.
- Parameters:
jsonStr- The JSON string to parse.cl- Specifies the type of target to be serialized.- Returns:
- Serialized Java objects.
- Throws:
JSONException
-
toObject
public java.lang.Object toObject(java.lang.String jsonStr, java.lang.Class cl, DecoderSetting decoderSetting) throws JSONExceptionTruncates the JSON string into a specified type of object.
- Parameters:
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.- Returns:
- Serialized Java objects.
- Throws:
JSONException
-
-