Class SerializerUtil
- java.lang.Object
-
- org.gcube.application.geoportalcommon.SerializerUtil
-
public class SerializerUtil extends Object
The Class SerializerUtil.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Sep 26, 2022
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSerializerUtil.GeoserverPlaformInfoJsonDeserializer
-
Constructor Summary
Constructors Constructor Description SerializerUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TreadJSON(String string, Class<T> clazz)Read JSON.static <T> TunmarshalXML(String string, Class<T> theClass)Unmarshal XML.
-
-
-
Method Detail
-
readJSON
public static <T> T readJSON(String string, Class<T> clazz) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
Read JSON.- Type Parameters:
T- the generic type- Parameters:
string- the stringclazz- the clazz- Returns:
- the t
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- the json processing exceptionIOException- Signals that an I/O exception has occurred.
-
-