com.splout.db.common
Class JSONSerDe

java.lang.Object
  extended by com.splout.db.common.JSONSerDe

public class JSONSerDe
extends java.lang.Object

Helper class for serializing / deserializing from / to JSON using Jackson


Nested Class Summary
static class JSONSerDe.JSONSerDeException
           
 
Constructor Summary
JSONSerDe()
           
 
Method Summary
static
<T> T
deSer(java.lang.String str, java.lang.Class<T> clazz)
           
static
<T> T
deSer(java.lang.String str, org.codehaus.jackson.type.TypeReference<T> ref)
           
static java.lang.String ser(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONSerDe

public JSONSerDe()
Method Detail

ser

public static java.lang.String ser(java.lang.Object obj)
                            throws JSONSerDe.JSONSerDeException
Throws:
JSONSerDe.JSONSerDeException

deSer

public static <T> T deSer(java.lang.String str,
                          org.codehaus.jackson.type.TypeReference<T> ref)
               throws JSONSerDe.JSONSerDeException
Throws:
JSONSerDe.JSONSerDeException

deSer

public static <T> T deSer(java.lang.String str,
                          java.lang.Class<T> clazz)
               throws JSONSerDe.JSONSerDeException
Throws:
JSONSerDe.JSONSerDeException


Copyright © 2012-2013 Datasalt Systems S.L.. All Rights Reserved.