package com.github.nsnjson;

import com.fasterxml.jackson.databind.JsonNode;
import com.github.nsnjson.decoding.*;
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);
    }

    public static Optional<JsonNode> decode(JsonNode presentation, Decoding decoding) {
        return Decoder.decode(presentation, decoding);
    }
}
@@ -179,30 +179,232 @@
 l;%0A%0A
-public class Driver %7B%0A
+/**%0A * NSNJSON Driver.%0A */%0Apublic class Driver %7B%0A%0A    /**%0A     * Encodes JSON to NSNJSON presentation.%0A     * @see Encoder#encode(JsonNode)%0A     * @param data any JSON data%0A     * @return NSNJSON presentation of JSON%0A     */
 %0A   
@@ -453,21 +453,20 @@
 sonNode 
-value
+data
 ) %7B%0A    
@@ -495,22 +495,225 @@
 ode(
-value);%0A    %7D%0A
+data);%0A    %7D%0A%0A    /**%0A     * Encodes JSON to NSNJSON presentation by custom encoding.%0A     * @see Encoder#encode(JsonNode, Encoding)%0A     * @param data any JSON data%0A     * @return NSNJSON presentation of JSON%0A     */
 %0A   
@@ -762,21 +762,20 @@
 sonNode 
-value
+data
 , Encodi
@@ -823,13 +823,12 @@
 ode(
-value
+data
 , en
@@ -851,124 +851,564 @@
     
-public static Optional%3CJsonNode%3E decode(JsonNode presentation) %7B%0A        return Decoder.decode(presentation);%0A    %7D%0A
+/**%0A     * Decodes JSON from specified NSNJSON presentation.%0A     * @see Decoder#decode(JsonNode)%0A     * @param presentation NSNJSON presentation of JSON%0A     * @return JSON%0A     */%0A    public static Optional%3CJsonNode%3E decode(JsonNode presentation) %7B%0A        return Decoder.decode(presentation);%0A    %7D%0A%0A    /**%0A     * Decodes JSON from specified NSNJSON presentation by custom decoding.%0A     * @see Decoder#decode(JsonNode, Decoding)%0A     * @param presentation NSNJSON presentation of JSON%0A     * @param decoding custom decoding%0A     * @return JSON%0A     */
 %0A   
@@ -1553,9 +1553,10 @@
 ;%0A    %7D%0A
+%0A
 %7D

Add documentation to { Driver }