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
ConstructorsModifierConstructorDescriptionprotectedCreates the Data Access Object. -
Method Summary
Modifier and TypeMethodDescriptionprotected static AirportgetAirport(String airportCode) Helper method to parse airport codes even if the Airport does not exist in the database.abstract NetworkInfogetInfo()Retrieves Online Network information.protected static InstantparseDateTime(String dt) Parses a Javascript date/time.Methods inherited from class DAO
getReader, getStream, setBufferSizeModifier and TypeMethodDescriptionprotected LineNumberReaderReturns a reader suitable for text reads on the HTTP connection.protected InputStreamReturns the input stream used for input.voidsetBufferSize(int size) Sets the buffer size for the connection.
-
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
-