-
- All Implemented Interfaces:
-
icu.windea.breezeframework.serialization.serializer.BreezeSerializer,icu.windea.breezeframework.serialization.serializer.DataSerializer,icu.windea.breezeframework.serialization.serializer.JsonSerializer,icu.windea.breezeframework.serialization.serializer.Serializer
public final class BreezeJsonSerializer implements JsonSerializer, BreezeSerializer
由Breeze Framework实现的Json数据的序列化器。
-
-
Field Summary
Fields Modifier and Type Field Description private final JsonConfigconfigprivate final DataFormatdataFormat
-
Constructor Summary
Constructors Constructor Description BreezeJsonSerializer(JsonConfig config)
-
Method Summary
Modifier and Type Method Description final JsonConfiggetConfig()DataFormatgetDataFormat()<T extends Any> Stringserialize(T target)序列化指定对象。 <T extends Any> Tdeserialize(String value, Class<T> type)反序列化指定的文本。 <T extends Any> Tdeserialize(String value, Type type)反序列化指定的文本。 -
-
Constructor Detail
-
BreezeJsonSerializer
BreezeJsonSerializer(JsonConfig config)
-
-
Method Detail
-
getConfig
final JsonConfig getConfig()
-
getDataFormat
DataFormat getDataFormat()
-
deserialize
<T extends Any> T deserialize(String value, Class<T> type)
反序列化指定的文本。
-
deserialize
<T extends Any> T deserialize(String value, Type type)
反序列化指定的文本。
-
-
-
-