com.fasterxml.clustermate.client.util.ContentConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clustermate-client Show documentation
Show all versions of clustermate-client Show documentation
Building blocks for client libraries that access
ClusterMate-based service.
package com.fasterxml.clustermate.client.util;
import java.io.*;
import com.fasterxml.clustermate.api.ContentType;
/**
* Base class for objects that are used for converting entities, by
* decoding and/or parsing entities from stream or chunked input.
*/
public interface ContentConverter
{
public T convert(ContentType contentType, InputStream in) throws IOException;
public T convert(ContentType contentType, byte[] buffer, int offset, int length) throws IOException;
}