-
- All Implemented Interfaces:
-
icu.windea.breezeframework.serialization.serializer.Serializer
public interface DataSerializer implements Serializer<String>
数据的序列化器。
数据的序列化器基于特定的数据类型,对数据进行序列化和反序列化。 其具体实现可能需要依赖第三方库,如
gson,fastjson,jackson和kotlinx-serialization。
-
-
Method Summary
Modifier and Type Method Description abstract <T extends Any> Stringserialize(T target)序列化指定对象。 abstract <T extends Any> Tdeserialize(String value, Class<T> type)反序列化指定的文本。 abstract <T extends Any> Tdeserialize(String value, Type type)反序列化指定的文本。 abstract DataFormatgetDataFormat()对应的数据类型。 -
-
Method Detail
-
deserialize
abstract <T extends Any> T deserialize(String value, Class<T> type)
反序列化指定的文本。
-
deserialize
abstract <T extends Any> T deserialize(String value, Type type)
反序列化指定的文本。
-
getDataFormat
abstract DataFormat getDataFormat()
对应的数据类型。
-
-
-
-