public class UTCTAIHistoryFilesLoader extends Object implements UTCTAILoader
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
(or UTC-TAI.history.gz
for gzip-compressed files)
Only one history file must be present in the IERS directories hierarchy.
Constructor and Description |
---|
UTCTAIHistoryFilesLoader()
Build a loader for UTC-TAI history file.
|
Modifier and Type | Method and Description |
---|---|
String |
getSupportedNames()
Get the regular expression for supported files names.
|
void |
loadData(InputStream input,
String name)
Load UTC-TAI offsets entries read from some file.
|
SortedMap<DateComponents,Integer> |
loadTimeSteps()
Load stored UTC-TAI offsets entries.
|
boolean |
stillAcceptsData()
Check if the loader still accepts new data.
|
public UTCTAIHistoryFilesLoader()
public String getSupportedNames()
getSupportedNames
in interface UTCTAILoader
public SortedMap<DateComponents,Integer> loadTimeSteps()
loadTimeSteps
in interface UTCTAILoader
public boolean stillAcceptsData()
This method is used to speed up data loading by interrupting crawling the data sets as soon as a loader has found the data it was waiting for. For loaders that can merge data from any number of sources (for example JPL ephemerides or Earth Orientation Parameters that are split among several files), this method should always return true to make sure no data is left over.
stillAcceptsData
in interface DataLoader
public void loadData(InputStream input, String name) throws PatriusException, IOException, ParseException
The time steps are extracted from some UTC-TAI.history[.gz]
file. Since entries are stored in a
SortedMap
, they are chronologically sorted and only one entry remains for a given
date.
loadData
in interface DataLoader
input
- data input streamname
- name of the file (or zip entry)IOException
- if data can't be readParseException
- if data can't be parsedPatriusException
- if some data is missing
or if some loader specific error occursCopyright © 2019 CNES. All rights reserved.