src.main.java.com.aceql.client.jdbc.util.AceQLStatementUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aceql-http-client-sdk Show documentation
Show all versions of aceql-http-client-sdk Show documentation
The AceQL Java Client SDK allows to wrap the AceQL HTTP APIs and eliminate the tedious works of handling communications errors and parsing JSON results.
Android and Java Desktop application developers can access remote SQL databases and/or SQL databases in the cloud by simply including standard JDBC calls in their code, just like they would for a local database.
package com.aceql.client.jdbc.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;
public class AceQLStatementUtil {
public static InputStream getFinalInputStream(InputStream in, boolean gzipResult) throws IOException {
InputStream inFinal = null;
if (!gzipResult) {
inFinal = in;
} else {
inFinal = new GZIPInputStream(in);
}
return inFinal;
}
}