Class OnlineNetworkDAO

java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.OnlineNetworkDAO
Direct Known Subclasses:
GetIVAOInfo, GetPOSCONInfo, GetServInfo, GetVATSIMInfo

public abstract class OnlineNetworkDAO extends DAO
An Online Network information Data Access Object.
Since:
9.0
Version:
10.1
Author:
Luke
  • Constructor Details

    • OnlineNetworkDAO

      protected OnlineNetworkDAO(InputStream is)
      Creates the Data Access Object.
      Parameters:
      is - the InputStream to read
  • Method Details

    • getInfo

      public abstract NetworkInfo getInfo() throws DAOException
      Retrieves Online Network information.
      Returns:
      a NetworkInfo bean
      Throws:
      DAOException - if an I/O error occurs
    • getAirport

      protected static Airport getAirport(String airportCode)
      Helper method to parse airport codes even if the Airport does not exist in the database.
      Parameters:
      airportCode - the Airport code
      Returns:
      an Airport
    • parseDateTime

      protected static Instant parseDateTime(String dt)
      Parses a Javascript date/time.
      Parameters:
      dt - the date/time text
      Returns:
      an Instant