Package info.ejava.examples.common.dto
Class XmlUtil
java.lang.Object
info.ejava.examples.common.dto.DtoUtil
info.ejava.examples.common.dto.XmlUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static XmlUtilprotected com.fasterxml.jackson.dataformat.xml.XmlMapperFields inherited from class info.ejava.examples.common.dto.DtoUtil
DATE_FORMAT, DATETIME_FORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XmlUtilinstance()<T> voidmarshalThrows(T object, OutputStream os) <T> TunmarshalThrows(InputStream is, Class<T> type) Methods inherited from class info.ejava.examples.common.dto.DtoUtil
init, marshal, marshal, marshalAsBytes, marshalThrows, unmarshal, unmarshal, unmarshal, unmarshalThrows
-
Field Details
-
instance
-
mapper
protected com.fasterxml.jackson.dataformat.xml.XmlMapper mapper
-
-
Constructor Details
-
XmlUtil
public XmlUtil() -
XmlUtil
public XmlUtil(com.fasterxml.jackson.dataformat.xml.XmlMapper mapper)
-
-
Method Details
-
marshalThrows
- Specified by:
marshalThrowsin classDtoUtil- Throws:
IOException
-
unmarshalThrows
- Specified by:
unmarshalThrowsin classDtoUtil- Throws:
IOException
-
instance
-