Class GetNOAAWeather
java.lang.Object
org.deltava.dao.http.DAO
org.deltava.dao.http.GetNOAAWeather
A Data Access Object to download Weather data from the NOAA.
- Since:
- 2.2
- Version:
- 11.1
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMETARCycle
(int hour) Retrieves a complete METAR cycle.getTAFCycle
(int hour) Retrieves a complete TAF cycle.Methods inherited from class org.deltava.dao.http.DAO
getCompression, getHeaderField, getIn, getOut, getResponseCode, init, reset, setAuthentication, setCompression, setConnectTimeout, setMethod, setReadTimeout, setRequestHeader, setReturnErrorStream
-
Constructor Details
-
GetNOAAWeather
public GetNOAAWeather()
-
-
Method Details
-
getMETARCycle
Retrieves a complete METAR cycle.- Parameters:
hour
- the hour in military time- Returns:
- a Map of METAR objects, keyed by airport code
- Throws:
DAOException
- if an I/O error occurs
-
getTAFCycle
Retrieves a complete TAF cycle.- Parameters:
hour
- the hour in military time- Returns:
- a Map of TAF objects, keyed by airport code
- Throws:
DAOException
- if an I/O error occurs
-