public class HttpUrlConnectionHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
openInputStream(HttpURLConnection httpConn,
String acceptEncoding) |
static InputStream |
openInputStream(HttpURLConnection httpConn,
String acceptEncoding,
AtomicLong contentLength)
Sets request properties, connects and opens the input stream depending on the HTTP response.
|
public static final String GZIP
public static InputStream openInputStream(HttpURLConnection httpConn, String acceptEncoding, AtomicLong contentLength) throws IOException
httpConn - The HTTP connectionacceptEncoding - Content-encoding (gzip, deflate or null)contentLength - length of content (output parameter)IOException - if problem occured.public static InputStream openInputStream(HttpURLConnection httpConn, String acceptEncoding) throws IOException
IOExceptionCopyright © 2019. All rights reserved.