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

de.gesellix.couchdb.Json Maven / Gradle / Ivy

package de.gesellix.couchdb;

import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Type;
import java.util.Collection;
import java.util.Map;

public interface Json {

  String encodeQueryValue(String key);

  String encodeQueryValue(Collection keys);

  String encodeDocument(Map document);

   T decodeDocument(String json, Class type) throws IOException;

   T decodeDocument(String json, Type type) throws IOException;

   T consume(InputStream stream, Class type) throws IOException;

   T consume(InputStream stream, Type type) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy