Class APIReaders.getLayerImages
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.APIReaders.getLayerImages
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- APIReaders
public static class APIReaders.getLayerImages extends java.lang.Object implements java.lang.Runnable
-
-
Field Summary
Fields Modifier and Type Field Description boolean
ssl_exception
-
Constructor Summary
Constructors Constructor Description getLayerImages(Context context, java.util.ArrayList<WeatherLayer> layers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.net.URL
getGeoServerURL(boolean ssl, WeatherLayer weatherLayer)
java.io.InputStream
getLayerInputStream(WeatherLayer weatherLayer)
static java.lang.String
getTimeStamp(long timestamp)
void
onFinished(boolean success)
void
onProgress(WeatherLayer weatherLayer)
void
onStart()
static boolean
readImage(java.io.InputStream inputStream, java.io.File targetFile)
boolean
readLayer(WeatherLayer weatherLayer)
void
run()
void
setForceUpdate(boolean b)
-
-
-
Constructor Detail
-
getLayerImages
public getLayerImages(Context context, java.util.ArrayList<WeatherLayer> layers)
-
-
Method Detail
-
getGeoServerURL
public static java.net.URL getGeoServerURL(boolean ssl, WeatherLayer weatherLayer)
-
getTimeStamp
public static java.lang.String getTimeStamp(long timestamp)
-
getLayerInputStream
public java.io.InputStream getLayerInputStream(WeatherLayer weatherLayer) throws java.io.IOException
- Throws:
java.io.IOException
-
readImage
public static boolean readImage(java.io.InputStream inputStream, java.io.File targetFile)
-
readLayer
public boolean readLayer(WeatherLayer weatherLayer)
-
setForceUpdate
public void setForceUpdate(boolean b)
-
onStart
public void onStart()
-
onProgress
public void onProgress(WeatherLayer weatherLayer)
-
onFinished
public void onFinished(boolean success)
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
-