|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.blogspot.applications4android.comicreader.core.Downloader
public class Downloader
Class containing utility functions for downloading the URI's
Method Summary | |
---|---|
static java.lang.String |
decodeHtml(java.lang.String in)
Replaces all sort of ''' kind of occurences in HTML strings with their corresponding ASCII chars. |
static void |
dnldImage(java.lang.String file,
java.net.URI uri)
Helper function to download the image from the given uri into a local file |
static java.lang.String |
downloadToString(java.net.URI uri)
Helper function to download a URI from the given url and save it to a string. |
static java.io.BufferedReader |
openConnection(java.net.URI uri)
Open a http connection with the given url |
static java.io.BufferedInputStream |
openConnectionStream(java.net.URI uri)
Open a http connection with the given url |
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 downloadToString(java.net.URI uri) throws ClientProtocolException, java.net.URISyntaxException, java.io.IOException
uri
- The url of interest.
java.io.IOException
java.net.URISyntaxException
ClientProtocolException
public static java.io.BufferedReader openConnection(java.net.URI uri) throws java.net.URISyntaxException, ClientProtocolException, java.io.IOException
uri
- desired url
java.net.URISyntaxException
java.io.IOException
ClientProtocolException
public static java.io.BufferedInputStream openConnectionStream(java.net.URI uri) throws java.net.URISyntaxException, ClientProtocolException, java.io.IOException
uri
- desired url
java.net.URISyntaxException
java.io.IOException
ClientProtocolException
public static void dnldImage(java.lang.String file, java.net.URI uri) throws ComicSDCardFull, ClientProtocolException, java.net.URISyntaxException, java.io.IOException
file
- local file to store the imageuri
- url from which to download the image
ComicSDCardFull
ClientProtocolException
java.net.URISyntaxException
java.io.IOException
public static java.lang.String decodeHtml(java.lang.String in)
in
- the input HTML string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |