package com.github.nsnjson;

import com.fasterxml.jackson.databind.JsonNode;
import com.github.nsnjson.decoding.Decoder;
import com.github.nsnjson.encoding.Encoder;

import java.util.Optional;

public class Driver {

    public static Optional<JsonNode> encode(JsonNode value) {
        return Encoder.encode(value);
    }

    public static Optional<JsonNode> decode(JsonNode presentation) {
        return Decoder.decode(presentation);
    }

}
package com.github.nsnjson;

import com.fasterxml.jackson.databind.JsonNode;
import com.github.nsnjson.decoding.Decoder;
import com.github.nsnjson.encoding.*;

import java.util.Optional;

public class Driver {

    public static Optional<JsonNode> encode(JsonNode value) {
        return Encoder.encode(value);
    }

    public static Optional<JsonNode> encode(JsonNode value, Encoding encoding) {
        return Encoder.encode(value, encoding);
    }

    public static Optional<JsonNode> decode(JsonNode presentation) {
        return Decoder.decode(presentation);
    }

}
Implement method { Driver @ encode(JsonNode, Encoding) }