de.gesellix.docker.response.JsonContentHandler Maven / Gradle / Ivy
package de.gesellix.docker.response;
import okio.Okio;
import okio.Source;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
public class JsonContentHandler {
public Object getContent(InputStream stream) throws IOException {
return readJsonObject(stream);
}
public Object getContent(Source source) throws IOException {
return readJsonObject(source);
}
private Object readJsonObject(InputStream stream) throws IOException {
Source source = Okio.source(stream);
return readJsonObject(source);
}
private Object readJsonObject(Source source) throws IOException {
List © 2015 - 2025 Weber Informatics LLC | Privacy Policy