Class XmlUtil
java.lang.Object
info.ejava.examples.common.dto.DtoUtil
info.ejava.examples.common.dto.XmlUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static XmlUtilprotected tools.jackson.dataformat.xml.XmlMapperFields inherited from class 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 DtoUtil
marshal, marshal, marshalAsBytes, marshalThrows, unmarshal, unmarshal, unmarshal, unmarshalThrows
-
Field Details
-
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
- Specified by:
marshalThrowsin classDtoUtil- Throws:
tools.jackson.core.JacksonException
-
unmarshalThrows
public <T> T unmarshalThrows(InputStream is, Class<T> type) throws tools.jackson.core.JacksonException - Specified by:
unmarshalThrowsin classDtoUtil- Throws:
tools.jackson.core.JacksonException
-
instance
-