Class GetIVAOInfo
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.OnlineNetworkDAO
org.deltava.dao.file.GetIVAOInfo
A Data Access Object to parse an IVAO v2 JSON servinfo feed.
- Since:
- 10.1
- Version:
- 11.1
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class OnlineNetworkDAO
getAirport, parseDateTimeModifier and TypeMethodDescriptionprotected static AirportgetAirport(String airportCode) Helper method to parse airport codes even if the Airport does not exist in the database.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
-
GetIVAOInfo
Creates the Data Access Object.- Parameters:
is- the InputStream to read
-
-
Method Details
-
getInfo
Description copied from class:OnlineNetworkDAORetrieves Online Network information.- Specified by:
getInfoin classOnlineNetworkDAO- Returns:
- a NetworkInfo bean
- Throws:
DAOException- if an I/O error occurs
-