1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
package tim.prune.function.weather;
import java.io.IOException;
import java.io.InputStream;
/**
* Provider of input streams to weather xml
*/
public interface StreamProvider
{
/** @return a stream to the xml for the current weather */
public InputStream getCurrentWeatherStream(double inLatitude, double inLongitude,
String inLocationId, boolean inUseCelsius) throws IOException;
/** @return a stream to the xml for the weather forecast */
public InputStream getForecastStream(String inLocationId, boolean inDaily, boolean inCelsius)
throws IOException;
}
|