public static class TAIUTCDatFilesLoader.Parser extends Object implements UTCTAIOffsetsLoader.Parser
Constructor and Description |
---|
Parser()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
List<OffsetModel> |
parse(InputStream input,
String name)
Load UTC-TAI offsets entries read from some file.
|
public List<OffsetModel> parse(InputStream input, String name) throws IOException
The time steps are extracted from some tai-utc.dat
file.
Since entries are stored in a SortedMap
,
they are chronologically sorted and only one entry remains for a given date.
parse
in interface UTCTAIOffsetsLoader.Parser
input
- data input streamname
- name of the file (or zip entry)IOException
- if data can't be readCopyright © 2002-2022 CS GROUP. All rights reserved.