Class XmlUtil

java.lang.Object
info.ejava.examples.common.dto.DtoUtil
info.ejava.examples.common.dto.XmlUtil

public class XmlUtil extends DtoUtil
  • Field Details

    • instance

      protected static XmlUtil instance
    • mapper

      protected tools.jackson.dataformat.xml.XmlMapper mapper
  • Constructor Details

    • XmlUtil

      public XmlUtil()
    • XmlUtil

      public XmlUtil(tools.jackson.dataformat.xml.XmlMapper mapper)
  • Method Details

    • marshalThrows

      public <T> void marshalThrows(T object, OutputStream os) throws tools.jackson.core.JacksonException
      Specified by:
      marshalThrows in class DtoUtil
      Throws:
      tools.jackson.core.JacksonException
    • unmarshalThrows

      public <T> T unmarshalThrows(InputStream is, Class<T> type) throws tools.jackson.core.JacksonException
      Specified by:
      unmarshalThrows in class DtoUtil
      Throws:
      tools.jackson.core.JacksonException
    • instance

      public static XmlUtil instance()