Class: ChemDataReader

Kekule.IO. ChemDataReader

new ChemDataReader(options)

Abstract root class for all chemistry data readers.
Parameters:
Name Type Description
options Hash Some additional params passed to reader.
Source:

Extends

  • ObjectEx

Methods

doReadData(data, dataType, format, options) → {Variant}

Do actual work for Kekule.IO.ChemDataReader#readData. Descendants should override this method.
Parameters:
Name Type Description
data Variant
dataType String Type of data, value should fom Kekule.IO.ChemDataType.
format String Format ID.
options Hash Additional options to read data. Different reader may have different options.
Source:
Returns:
Instance created by data.
Type
Variant

readData(data, dataType, format, options) → {Variant}

Read from data and return a related instance.
Parameters:
Name Type Description
data Variant
dataType String Type of data, value should fom Kekule.ChemStructureDataType.
format String Format ID.
options Hash Additional options to read data. Different reader may have different options.
Source:
Returns:
Instance created by data.
Type
Variant

Kekule.IO. ChemDataReader

new ChemDataReader()

Source:

Methods

doReadData(data, dataType, format, options) → {Variant}

Do actual work for Kekule.IO.ChemDataReader#readData. Descendants should override this method.
Parameters:
Name Type Description
data Variant
dataType String Type of data, value should fom Kekule.IO.ChemDataType.
format String Format ID.
options Hash Additional options to read data. Different reader may have different options.
Source:
Returns:
Instance created by data.
Type
Variant

readData(data, dataType, format, options) → {Variant}

Read from data and return a related instance.
Parameters:
Name Type Description
data Variant
dataType String Type of data, value should fom Kekule.ChemStructureDataType.
format String Format ID.
options Hash Additional options to read data. Different reader may have different options.
Source:
Returns:
Instance created by data.
Type
Variant