Class TAIUTCDatFilesLoader.Parser

    • Constructor Detail

      • Parser

        public Parser()
        Simple constructor.
    • Method Detail

      • parse

        public List<OffsetModel> parse​(InputStream input,
                                       String name)
                                throws IOException
        Load UTC-TAI offsets entries read from some file.

        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.

        Specified by:
        parse in interface UTCTAIOffsetsLoader.Parser
        Parameters:
        input - data input stream
        name - name of the file (or zip entry)
        Returns:
        parsed UTC-TAI offsets.
        Throws:
        IOException - if data can't be read