Package org.orekit.time
Class UTCTAIHistoryFilesLoader
- java.lang.Object
-
- org.orekit.data.AbstractSelfFeedingLoader
-
- org.orekit.time.UTCTAIHistoryFilesLoader
-
- All Implemented Interfaces:
UTCTAIOffsetsLoader
public class UTCTAIHistoryFilesLoader extends AbstractSelfFeedingLoader implements UTCTAIOffsetsLoader
Loader for UTC versus TAI history files.UTC versus TAI history files contain
leap seconds
data since.The UTC versus TAI history files are recognized thanks to their base names, which must match the pattern
UTC-TAI.history
(orUTC-TAI.history.gz
for gzip-compressed files)Only one history file must be present in the IERS directories hierarchy.
- Author:
- Luc Maisonobe
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UTCTAIHistoryFilesLoader.Parser
Internal class performing the parsing.
-
Constructor Summary
Constructors Constructor Description UTCTAIHistoryFilesLoader()
Build a loader for UTC-TAI history file.UTCTAIHistoryFilesLoader(DataProvidersManager manager)
Build a loader for UTC-TAI history file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OffsetModel>
loadOffsets()
Load UTC-TAI offsets entries.-
Methods inherited from class org.orekit.data.AbstractSelfFeedingLoader
feed, getDataProvidersManager, getSupportedNames, setSupportedNames
-
-
-
-
Constructor Detail
-
UTCTAIHistoryFilesLoader
@DefaultDataContext public UTCTAIHistoryFilesLoader()
Build a loader for UTC-TAI history file. This constructor uses thedefault data context
.
-
UTCTAIHistoryFilesLoader
public UTCTAIHistoryFilesLoader(DataProvidersManager manager)
Build a loader for UTC-TAI history file.- Parameters:
manager
- provides access to theUTC-TAI.history
file.
-
-
Method Detail
-
loadOffsets
public List<OffsetModel> loadOffsets()
Load UTC-TAI offsets entries.- Specified by:
loadOffsets
in interfaceUTCTAIOffsetsLoader
- Returns:
- sorted UTC-TAI offsets entries (if the linear offsets used prior to 1972 are missing, they will be inserted automatically)
-
-