public final class HttpHelper
extends java.lang.Object
java.net
classes
in Android.Modifier and Type | Class and Description |
---|---|
static class |
HttpHelper.ContentType |
Modifier and Type | Method and Description |
---|---|
static java.lang.CharSequence |
downloadViaHttp(java.lang.String uri,
HttpHelper.ContentType type)
Downloads the entire resource instead of part.
|
static java.lang.CharSequence |
downloadViaHttp(java.lang.String uri,
HttpHelper.ContentType type,
int maxChars) |
static java.net.URI |
unredirect(java.net.URI uri) |
public static java.lang.CharSequence downloadViaHttp(java.lang.String uri, HttpHelper.ContentType type) throws java.io.IOException
java.io.IOException
downloadViaHttp(String, HttpHelper.ContentType, int)
public static java.lang.CharSequence downloadViaHttp(java.lang.String uri, HttpHelper.ContentType type, int maxChars) throws java.io.IOException
uri
- URI to retrievetype
- expected text-like MIME type of that contentmaxChars
- approximate maximum characters to read from the sourceString
java.io.IOException
- if the content can't be retrieved because of a bad URI, network problem, etc.public static java.net.URI unredirect(java.net.URI uri) throws java.io.IOException
java.io.IOException