Class JsonValueSerializerWrapper

  • All Implemented Interfaces:

    public class JsonValueSerializerWrapper
    extends Object
    implements JsonSerializer
    Wraps another serializer, intercepting and handling requests to [de]serialize JsonObject and JsonArray.
    • Constructor Detail

      • JsonValueSerializerWrapper

        public JsonValueSerializerWrapper​(JsonSerializer wrapped)
    • Method Detail

      • serialize

        public byte[] serialize​(Object input)
        Description copied from interface: JsonSerializer
        Serializes the given input into its encoded byte array form.
        Specified by:
        serialize in interface JsonSerializer
        input - the object as input.
        the serialized output.
      • deserialize

        public <T> T deserialize​(Class<T> target,
                                 byte[] input)
        Description copied from interface: JsonSerializer
        Deserializes raw input into the target class.
        Specified by:
        deserialize in interface JsonSerializer
        Type Parameters:
        T - the generic type to deserialize into.
        target - the target class.
        input - the raw input.
        the deserialized output.