Class OnlineNetworkDAO
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.OnlineNetworkDAO
- Direct Known Subclasses:
GetIVAOInfo
,GetPOSCONInfo
,GetServInfo
,GetVATSIMInfo
An Online Network information Data Access Object.
- Since:
- 9.0
- Version:
- 10.1
- Author:
- Luke
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates the Data Access Object. -
Method Summary
Modifier and TypeMethodDescriptionprotected static Airport
getAirport
(String airportCode) Helper method to parse airport codes even if the Airport does not exist in the database.abstract NetworkInfo
getInfo()
Retrieves Online Network information.protected static Instant
parseDateTime
(String dt) Parses a Javascript date/time.Methods inherited from class org.deltava.dao.file.DAO
getReader, getStream, setBufferSize
-
Constructor Details
-
OnlineNetworkDAO
Creates the Data Access Object.- Parameters:
is
- the InputStream to read
-
-
Method Details
-
getInfo
Retrieves Online Network information.- Returns:
- a NetworkInfo bean
- Throws:
DAOException
- if an I/O error occurs
-
getAirport
-
parseDateTime
-