Class AGILeapSecondFilesLoader.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 LeapSecond.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
        input - data input stream
        name - name of the file (or zip entry)
        parsed UTC-TAI offsets.
        IOException - if data can't be read