Class GetServInfo
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.OnlineNetworkDAO
org.deltava.dao.file.GetServInfo
A Data Acces Object to fetch VATSIM/IVAO ServInfo data.
ServInfo data for pilots and controllers is in a colon (:) delimited format, with the following tokens:
00 callsign 01 cid 02 realname 03 clienttype 04 frequency 05 latitude 06 longitude 07 altitude 08 groundspeed
09 planned_aircraft 10 planned_tascruise 11 planned_depairport 12 planned_altitude 13 planned_destairport
14 server 15 protrevision 16 rating 17 transponder 18 facilitytype 19 visualrange 20 planned_revision
21 planned_flighttype 22 planned_deptime 23 planned_actdeptime 24 planned_hrsenroute
25 planned_minenroute 26 planned_hrsfuel 27 planned_minfuel 28 planned_altairport 29 planned_remarks
30 planned_route 31 planned_depairport_lat 32 planned_depairport_lon 33 planned_destairport_lat
34 planned_destairport_lon 35 atis_message 36 time_last_atis_received 37 time_logon 38 heading 39 QNH_iHg 40 QNH_Mb
- Since:
- 1.0
- Version:
- 12.0
- Author:
- Luke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classPrivate helper class to parse ServInfo CLIENT data. -
Constructor Summary
ConstructorsConstructorDescriptionGetServInfo(InputStream is, OnlineNetwork net) Initializes the DAO with a particular stream. -
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
-
GetServInfo
Initializes the DAO with a particular stream.- Parameters:
is- the stream to usenet- the OnlineNetwork
-
-
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
-