-
- All Implemented Interfaces:
-
icu.windea.breezeframework.serialization.serializer.DataSerializer,icu.windea.breezeframework.serialization.serializer.DelegateSerializer,icu.windea.breezeframework.serialization.serializer.JacksonSerializer,icu.windea.breezeframework.serialization.serializer.Serializer,icu.windea.breezeframework.serialization.serializer.XmlSerializer
public final class JacksonXmlSerializer implements XmlSerializer, JacksonSerializer
由Jackson委托实现的Xml数据的序列化器。
-
-
Field Summary
Fields Modifier and Type Field Description private final XmlMappermapperprivate final DataFormatdataFormat
-
Constructor Summary
Constructors Constructor Description JacksonXmlSerializer(XmlMapper mapper)
-
Method Summary
Modifier and Type Method Description final XmlMappergetMapper()DataFormatgetDataFormat()<T extends Any> Stringserialize(T target)序列化指定对象。 <T extends Any> Tdeserialize(String value, Class<T> type)反序列化指定的文本。 <T extends Any> Tdeserialize(String value, Type type)反序列化指定的文本。 -
-
Method Detail
-
getMapper
final XmlMapper getMapper()
-
getDataFormat
DataFormat getDataFormat()
-
deserialize
<T extends Any> T deserialize(String value, Class<T> type)
反序列化指定的文本。
-
deserialize
<T extends Any> T deserialize(String value, Type type)
反序列化指定的文本。
-
-
-
-