Package jrpc.service.converters
Class JsonConverter
- java.lang.Object
-
- jrpc.service.converters.JsonConverter
-
- All Implemented Interfaces:
IConverter
public class JsonConverter extends java.lang.Object implements IConverter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
JsonConverter.MyDateTypeAdapter
-
Constructor Summary
Constructors Constructor Description JsonConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
deserialization(java.io.InputStream inputStream, java.lang.reflect.Type type)
java.lang.Object
deserialization(java.lang.String jsonForm, java.lang.reflect.Type type)
java.lang.String
serialization(java.lang.Object o)
-
-
-
Method Detail
-
serialization
public java.lang.String serialization(java.lang.Object o)
- Specified by:
serialization
in interfaceIConverter
-
deserialization
public java.lang.Object deserialization(java.io.InputStream inputStream, java.lang.reflect.Type type) throws ServiceException
- Specified by:
deserialization
in interfaceIConverter
- Throws:
ServiceException
-
deserialization
public java.lang.Object deserialization(java.lang.String jsonForm, java.lang.reflect.Type type) throws ServiceException
- Specified by:
deserialization
in interfaceIConverter
- Throws:
ServiceException
-
-