de.gesellix.docker.response.JsonContentHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-engine Show documentation
Show all versions of docker-engine Show documentation
Bare HTTP client for the Docker engine api
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 - 2024 Weber Informatics LLC | Privacy Policy