Class: CmlWriter

Kekule.IO. CmlWriter

new CmlWriter()

Writer for CML document. Use CmlWriter.writeData() to write a Kekule.ChemObject to suitable CML element.
Source:

Extends

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.
Inherited From:
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.
Inherited From:
Source:
Returns:
Instance created by data.
Type
Variant