Class GetSchedule
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.ScheduleLoadDAO
org.deltava.dao.file.GetSchedule
A Data Access Object to load an exported Flight Schedule.
- Since:
- 1.0
- Version:
- 12.0
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class ScheduleLoadDAO
ScheduleLoadDAO.FlightData -
Field Summary
Fields inherited from class ScheduleLoadDAO
_airlines, _status, GROUND_EQ -
Constructor Summary
ConstructorsConstructorDescriptionGetSchedule(ScheduleSource src, InputStream is, boolean isUTC) Initializes the Data Access Object. -
Method Summary
Modifier and TypeMethodDescriptionprocess()Loads the Schedule Entries.voidsetMaxLine(ScheduleSource src, int maxLine) Updates the maximum line number for a Schedule source.Methods inherited from class ScheduleLoadDAO
getEquipmentType, getStatus, setAircraft, setAirlinesMethods inherited from class DAO
getReader, getStream, setBufferSize
-
Constructor Details
-
GetSchedule
Initializes the Data Access Object.- Parameters:
src- the ScheduleSourceis- the input stream to readisUTC- TRUE if departure/arrival times are UTC, otherwise FALSE
-
-
Method Details
-
setMaxLine
Updates the maximum line number for a Schedule source.- Parameters:
src- a ScheduleSourcemaxLine- the maximum line number
-
process
Loads the Schedule Entries.- Specified by:
processin classScheduleLoadDAO- Returns:
- a Collection of ScheduleEntry beans
- Throws:
DAOException- if an I/O error occurs
-