|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.zxing.client.android.HttpHelper
public final class HttpHelper
Utility methods for retrieving content over HTTP using the more-supported java.net
classes
in Android.
Nested Class Summary | |
---|---|
static class |
HttpHelper.ContentType
|
Method Summary | |
---|---|
static java.lang.String |
downloadViaHttp(java.lang.String uri,
HttpHelper.ContentType type)
|
static java.net.URI |
unredirect(java.net.URI uri)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String downloadViaHttp(java.lang.String uri, HttpHelper.ContentType type) throws java.io.IOException
uri
- URI to retrievetype
- expected text-like MIME type of that content
String
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |