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

nl.renarj.jasdb.rest.serializers.RestResponseHandler Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package nl.renarj.jasdb.rest.serializers;

import nl.renarj.jasdb.rest.exceptions.RestException;
import nl.renarj.jasdb.rest.model.RestEntity;

import java.io.InputStream;
import java.io.OutputStream;

public interface RestResponseHandler {
	public  T deserialize(Class dataType, InputStream inputStream) throws RestException;
    public  T deserialize(Class dataType, String data) throws RestException;

	public void serialize(RestEntity entity, OutputStream outputStream) throws RestException;

	public String getMediaType();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy