-
- 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.PropertiesSerializer,icu.windea.breezeframework.serialization.serializer.Serializer
public final class JacksonPropertiesSerializer implements PropertiesSerializer, JacksonSerializer
由Jackson委托实现的Properties数据的序列化器。
-
-
Field Summary
Fields Modifier and Type Field Description private final JavaPropsMappermapperprivate final DataFormatdataFormat
-
Constructor Summary
Constructors Constructor Description JacksonPropertiesSerializer(JavaPropsMapper mapper)
-
Method Summary
Modifier and Type Method Description final JavaPropsMappergetMapper()DataFormatgetDataFormat()<T extends Any> Stringserialize(T target)序列化指定对象。 <T extends Any> Tdeserialize(String value, Class<T> type)反序列化指定的文本。 <T extends Any> Tdeserialize(String value, Type type)反序列化指定的文本。 <T extends Any> PropertiesserializeProperties(T target)序列化指定属性对象。 <T extends Any> TdeserializeProperties(Properties properties, Class<T> type)反序列化指定属性对象。 <T extends Any> TdeserializeProperties(Properties properties, Type type)反序列化指定属性对象。 -
-
Method Detail
-
getMapper
final JavaPropsMapper 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)
反序列化指定的文本。
-
serializeProperties
<T extends Any> Properties serializeProperties(T target)
序列化指定属性对象。
-
deserializeProperties
<T extends Any> T deserializeProperties(Properties properties, Class<T> type)
反序列化指定属性对象。
-
deserializeProperties
<T extends Any> T deserializeProperties(Properties properties, Type type)
反序列化指定属性对象。
-
-
-
-