Package org.duracloud.common.json
Class JaxbJsonSerializer<T>
- java.lang.Object
-
- org.duracloud.common.json.JaxbJsonSerializer<T>
-
public class JaxbJsonSerializer<T> extends Object
Handles serialization and deserialization of objects JSON objects into Java using JAXB. The pojos where data is stored should include JAXB annotations.- Author:
- Bill Branan Date: 7/29/13
-
-
Constructor Summary
Constructors Constructor Description JaxbJsonSerializer(Class<T> type)Creates a serializer which will work with the defined class type.
-
-
-
Method Detail
-
serialize
public String serialize(T object) throws IOException
- Throws:
IOException
-
deserialize
public T deserialize(String json) throws IOException
- Throws:
IOException
-
-