Package org.irods.irods4j.common
Class XmlUtil
java.lang.Object
org.irods.irods4j.common.XmlUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic <T> TfromBytes(byte[] data, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) static <T> Tstatic <T> TfromXmlString(String data, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) static <T> TfromXmlString(String data, Class<T> clazz) static com.fasterxml.jackson.dataformat.xml.XmlMapperstatic com.fasterxml.jackson.dataformat.xml.XmlMappersetXmlMapper(com.fasterxml.jackson.dataformat.xml.XmlMapper other) static StringtoXmlString(Object object)
-
Constructor Details
-
XmlUtil
public XmlUtil()
-
-
Method Details
-
setXmlMapper
public static com.fasterxml.jackson.dataformat.xml.XmlMapper setXmlMapper(com.fasterxml.jackson.dataformat.xml.XmlMapper other) -
getXmlMapper
public static com.fasterxml.jackson.dataformat.xml.XmlMapper getXmlMapper() -
enablePrettyPrinting
public static void enablePrettyPrinting() -
disablePrettyPrinting
public static void disablePrettyPrinting() -
toXmlString
public static String toXmlString(Object object) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
fromXmlString
public static <T> T fromXmlString(String data, Class<T> clazz) throws com.fasterxml.jackson.databind.JsonMappingException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
fromXmlString
public static <T> T fromXmlString(String data, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws com.fasterxml.jackson.databind.JsonMappingException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
fromBytes
- Throws:
IOException
-
fromBytes
public static <T> T fromBytes(byte[] data, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException - Throws:
IOException
-