Class SetSerializedPosition
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.WriteableDAO
org.deltava.dao.file.SetSerializedPosition
A Data Access Object to serialize ACARS position records.
- Since:
- 4.1
- Version:
- 11.5
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.file.WriteableDAO
_os
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarchivePositions
(int flightID, SequencedCollection<? extends RouteEntry> positions) Serializes ACARS position records.Methods inherited from class org.deltava.dao.file.DAO
getReader, getStream, setBufferSize
-
Constructor Details
-
SetSerializedPosition
Initializes the Data Access Object.- Parameters:
os
- the OutputStream to write to
-
-
Method Details
-
archivePositions
public SerializedDataVersion archivePositions(int flightID, SequencedCollection<? extends RouteEntry> positions) throws DAOException Serializes ACARS position records.- Parameters:
flightID
- the ACARS Flight IDpositions
- a SequencedCollection of ACARSRouteEntry beans- Returns:
- the SerializedDataVersion used to archive these position records, or null if none
- Throws:
DAOException
- if an I/O error occurs
-