public class URLDataLoader
extends java.lang.Object
Constructor and Description |
---|
URLDataLoader(java.lang.String url,
java.lang.String tag)
Constructs a new URLDataLoader for the given URL, using the given
descriptive tag in any progress dialog if one is used during the
download.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
getURLData(java.lang.String url,
java.lang.String tag)
Downloads the data from a given URL, using the given descriptive
tag in the progress dialog, if any, and returns the data as a byte
array.
|
java.lang.String |
url()
Returns the source URL for this loader.
|
byte[] |
urlData()
Returns the data obtained by this loader, or
null in
case of error. |
public URLDataLoader(java.lang.String url, java.lang.String tag)
public static byte[] getURLData(java.lang.String url, java.lang.String tag)
public byte[] urlData()
null
in
case of error.public java.lang.String url()