Class CRDParser


  • public class CRDParser
    extends Object
    A parser for the CRD data file format.

    It supports both 1.0 and 2.0 versions

    Note: Not all the records are read by the parser. Only the most significants are parsed. Contributions are welcome to support more fields in the format.

    Since:
    10.3
    Author:
    Bryan Cazabonne, Rongwang Li
    See Also:
    1.0 file format, 2.0 file format
    • Field Detail

      • DEFAULT_CRD_SUPPORTED_NAMES

        public static final String DEFAULT_CRD_SUPPORTED_NAMES
        Default supported files name pattern for CRD files.
        See Also:
        Constant Field Values
    • Method Detail

      • getTimeScale

        public TimeScale getTimeScale()
        Get the time scale used to read the file.
        Returns:
        the time scale used to read the file
      • parse

        public CRD parse​(DataSource source)
                  throws IOException
        Parse a CRD file.
        Parameters:
        source - data source containing the CRD file.
        Returns:
        a parsed CRD file.
        Throws:
        IOException - if reader throws one.