com.codepoetics.octarine.json.serialisation.SafeSerialiser Maven / Gradle / Ivy
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