Class XmlUtil

java.lang.Object
org.irods.irods4j.common.XmlUtil

public class XmlUtil extends 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.JsonMappingException
      com.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.JsonMappingException
      com.fasterxml.jackson.core.JsonProcessingException
    • fromBytes

      public static <T> T fromBytes(byte[] data, Class<T> clazz) throws IOException
      Throws:
      IOException
    • fromBytes

      public static <T> T fromBytes(byte[] data, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException
      Throws:
      IOException