-
- All Implemented Interfaces:
-
icu.windea.breezeframework.serialization.serializer.DataSerializer,icu.windea.breezeframework.serialization.serializer.DelegateSerializer,icu.windea.breezeframework.serialization.serializer.JsonSerializer,icu.windea.breezeframework.serialization.serializer.KotlinxSerializer,icu.windea.breezeframework.serialization.serializer.Serializer
public final class KotlinxJsonSerializer implements JsonSerializer, KotlinxSerializer
由Kotlinx Serialization委托实现的Json数据的序列化器。
-
-
Field Summary
Fields Modifier and Type Field Description private final Jsonjsonprivate final DataFormatdataFormat
-
Constructor Summary
Constructors Constructor Description KotlinxJsonSerializer(Json json)
-
Method Summary
Modifier and Type Method Description final JsongetJson()DataFormatgetDataFormat()<T extends Any> Stringserialize(T target)序列化指定对象。 <T extends Any> Stringserialize(T target, Class<T> type)序列化指定对象。 <T extends Any> Stringserialize(T target, Type type)序列化指定对象。 <T extends Any> Tdeserialize(String value, Class<T> type)反序列化指定的文本。 <T extends Any> Tdeserialize(String value, Type type)反序列化指定的文本。 -
-
Method Detail
-
getJson
final Json getJson()
-
getDataFormat
DataFormat getDataFormat()
-
deserialize
<T extends Any> T deserialize(String value, Class<T> type)
反序列化指定的文本。
-
deserialize
<T extends Any> T deserialize(String value, Type type)
反序列化指定的文本。
-
-
-
-