Class GetSimVector
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.ScheduleLoadDAO
org.deltava.dao.file.GetSimVector
A Data Access Object to read SimVector JSON sechedule data.
- Since:
- 12.0
- Version:
- 12.0
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class ScheduleLoadDAO
ScheduleLoadDAO.FlightDataModifier and TypeClassDescriptionprotected static classA utility class to store flight data components. -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess()Returns back the loaded Flight Schedule entries.voidsetBaseLine(int lineNumber) Sets the base line number for this file.Methods inherited from class ScheduleLoadDAO
getEquipmentType, getStatus, setAircraft, setAirlinesModifier and TypeMethodDescriptionprotected StringgetEquipmentType(String iataCode) Maps an IATA equipment code to an aircraft type.Returns the schedule import results.voidsetAircraft(Collection<Aircraft> acInfo) Initializes the IATA/ICAO aircraft code mappings.voidsetAirlines(Collection<Airline> airlines) Initializes the list of airlines.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
-
GetSimVector
Creates the Data Access Object.- Parameters:
is- the InputStream to read
-
-
Method Details
-
setBaseLine
public void setBaseLine(int lineNumber) Sets the base line number for this file. Since this is a JSON feed. the line reported will be the offset in the source JSON array.- Parameters:
lineNumber- the line number the base line number
-
process
Description copied from class:ScheduleLoadDAOReturns back the loaded Flight Schedule entries.- Specified by:
processin classScheduleLoadDAO- Returns:
- a Collection of ScheduleEntry beans
- Throws:
DAOException- if a JDBC error occurs
-