AssetFileFetcher
fetches data from a given file path in the application assets.AssetFileFetcher
.BitmapFetcherStreamReader
takes an InputStream
and produces a Bitmap
,
should the data be formatted appropriately.HttpFetcher
based on the snapshot of data in this
Builder
at the instance this method is called.ConnectivityUnavailableException
with the default message filled in.ConnectivityUnavailableException
, specifying the message.Fetcher
.Fetcher
is a component which collects data from a source, such as a remote server or a
local file.FetcherSteamReader
is an interface that should be implemented by classes capturing a
stream of data from a Fetcher
.FileFetcher
fetches data from a given File
or path.FileFetcher
, specifying the path of the file.FileFetcher
, specifying the File
to read from.FileWriterFetcherStreamReader
will take an InputStream
and pipe the data out
to the given file.FileWriterFetcherStreamReader
.FileWriterFetcherStreamReader
.Bitmap
that was returned from the stream.String
.Exception
object.File
that this instance uses to read data from.File
object, describing the file that the data will be written out to.JSONArray
version of this data.JSONObject
version of this data.Proxy
configured for this instance, if one is configured.HttpFetcher.executeFetcher(FetcherStreamReader)
been
called?HttpFetcher
fetches data from a HTTP server, specified by the given URL.HttpFetcher
.Builder
instance which can later be used to construct a
HttpFetcher
.Result
represent an error?JSONFetcherStreamReader
takes an InputStream
and produces a
JSONObject
or JSONArray
version of this data.InputStream
is available to read from.Result
that holds a success object.Result
that holds an error.UrlMismatchException
is thrown.Loader
, based specifically on the Android framework's
AsyncTaskLoader
.SimpleAsyncTaskLoader
.Loader
, based specifically on the Android support
library's AsyncTaskLoader
.SimpleAsyncTaskLoader
.IOException
is thrown when the remote path of the data to be fetched from the server
is not the same as the requested path.UrlMismatchException
with the default message filled in.UrlMismatchException
, specifying the message.