public interface INetwork
Modifier and Type | Method and Description |
---|---|
InputStream |
httpGet(String url,
boolean useCache)
Returns the result of an HTTP GET request to the specified URL.
|
boolean |
isConnected()
Returns whether the network is connected to the Internet.
|
boolean isConnected()
InputStream httpGet(String url, boolean useCache) throws IOException
url
- URL for requestuseCache
- whether a cached result should be usedIOException
- if an error occurs during connection or communication with the remote endpoint