All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codepoetics.octarine.json.serialisation.SafeSerialiser Maven / Gradle / Ivy

There is a newer version: 0.18
Show newest version
package com.codepoetics.octarine.json.serialisation;

import com.fasterxml.jackson.core.JsonGenerator;

import java.io.IOException;

public interface SafeSerialiser extends Serialiser {
    default void accept(JsonGenerator j, T value) {
        try {
            unsafeAccept(j, value);
        } catch (IOException e) {
            throw new SerialisationException(e);
        }
    }

    void unsafeAccept(JsonGenerator j, T value) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy