Package net.hironico.common.utils.json
Class JSONFile
java.lang.Object
net.hironico.common.utils.json.JSONFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tstatic <T> Tload(InputStream in, Class<T> clazz) static <T> Tstatic booleanstatic StringSerialize to JSON string the object given as parameter, If it is a ResultSet then special handling is made in this class.
-
Constructor Details
-
JSONFile
public JSONFile()
-
-
Method Details
-
serialize
public static String serialize(Object obj) throws com.fasterxml.jackson.core.JsonProcessingException Serialize to JSON string the object given as parameter, If it is a ResultSet then special handling is made in this class. Please note that if passed a resultset object, then the resultset is NOT closed by this method.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
parse
- Throws:
IOException
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
saveAs
- Throws:
IOException
-