Package org.orekit.time
Class TAIUTCDatFilesLoader
- java.lang.Object
-
- org.orekit.data.AbstractSelfFeedingLoader
-
- org.orekit.time.TAIUTCDatFilesLoader
-
- All Implemented Interfaces:
UTCTAIOffsetsLoader
public class TAIUTCDatFilesLoader extends AbstractSelfFeedingLoader implements UTCTAIOffsetsLoader
Loader for UTC-TAI extracted from tai-utc.dat file from USNO.This class is immutable and hence thread-safe
- Since:
- 7.1
- Author:
- Luc Maisonobe
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TAIUTCDatFilesLoader.Parser
Internal class performing the parsing.
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SUPPORTED_NAMES
Default supported files name pattern.
-
Constructor Summary
Constructors Constructor Description TAIUTCDatFilesLoader(String supportedNames)
Build a loader for tai-utc.dat file from USNO.TAIUTCDatFilesLoader(String supportedNames, DataProvidersManager manager)
Build a loader for tai-utc.dat file from USNO.
-
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
-
-
-
-
Field Detail
-
DEFAULT_SUPPORTED_NAMES
public static final String DEFAULT_SUPPORTED_NAMES
Default supported files name pattern.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TAIUTCDatFilesLoader
@DefaultDataContext public TAIUTCDatFilesLoader(String supportedNames)
Build a loader for tai-utc.dat file from USNO. This constructor uses thedefault data context
.- Parameters:
supportedNames
- regular expression for supported files names- See Also:
TAIUTCDatFilesLoader(String, DataProvidersManager)
-
TAIUTCDatFilesLoader
public TAIUTCDatFilesLoader(String supportedNames, DataProvidersManager manager)
Build a loader for tai-utc.dat file from USNO.- Parameters:
supportedNames
- regular expression for supported files namesmanager
- provides access to thetai-utc.dat
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)
-
-