public class CRDParser extends Object
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CRD_SUPPORTED_NAMES
Default supported files name pattern for CRD files.
|
| Constructor and Description |
|---|
CRDParser()
Default constructor.
|
CRDParser(TimeScale utc)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TimeScale |
getTimeScale()
Get the time scale used to read the file.
|
CRD |
parse(DataSource source)
Parse a CRD file.
|
public static final String DEFAULT_CRD_SUPPORTED_NAMES
@DefaultDataContext public CRDParser()
This constructor uses the default data context.
public CRDParser(TimeScale utc)
utc - utc time scale to read epochspublic TimeScale getTimeScale()
public CRD parse(DataSource source) throws IOException
source - data source containing the CRD file.IOException - if reader throws one.Copyright © 2002-2023 CS GROUP. All rights reserved.