io.github.jpmorganchase.fusion.http.HttpConnectionInputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fusion-sdk Show documentation
Show all versions of fusion-sdk Show documentation
A Java SDK for the Fusion platform API
package io.github.jpmorganchase.fusion.http;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
final class HttpConnectionInputStream extends InputStream {
private final HttpURLConnection connection;
public HttpConnectionInputStream(HttpURLConnection connection) {
this.connection = connection;
}
@Override
public int read() throws IOException {
return connection.getInputStream().read();
}
@Override
public void close() throws IOException {
connection.getInputStream().close();
connection.disconnect();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy