Package kos.api
Class Serializer.JsonSerializer
java.lang.Object
kos.api.Serializer.JsonSerializer
- All Implemented Interfaces:
Serializer
- Enclosing interface:
- Serializer
-
Nested Class Summary
Nested classes/interfaces inherited from interface kos.api.Serializer
Serializer.JsonSerializer, Serializer.PlainTextSerializer -
Field Summary
Fields inherited from interface kos.api.Serializer
INVALID_SERIALIZER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tdeserialize(@NonNull io.vertx.core.buffer.Buffer buffer, @NonNull Class<T> type) io.vertx.core.buffer.Buffer
-
Constructor Details
-
JsonSerializer
public JsonSerializer()
-
-
Method Details
-
contentType
- Specified by:
contentTypein interfaceSerializer
-
serialize
- Specified by:
serializein interfaceSerializer
-
deserialize
public <T> T deserialize(@NonNull @NonNull io.vertx.core.buffer.Buffer buffer, @NonNull @NonNull Class<T> type) - Specified by:
deserializein interfaceSerializer
-