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 booleanssl_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.URLgetGeoServerURL(boolean ssl, WeatherLayer weatherLayer)java.io.InputStreamgetLayerInputStream(WeatherLayer weatherLayer)static java.lang.StringgetTimeStamp(long timestamp)voidonFinished(boolean success)voidonProgress(WeatherLayer weatherLayer)voidonStart()static booleanreadImage(java.io.InputStream inputStream, java.io.File targetFile)booleanreadLayer(WeatherLayer weatherLayer, boolean isSubLayer)voidrun()voidsetForceUpdate(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, boolean isSubLayer)
-
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:
runin interfacejava.lang.Runnable
-
-