Name space for IO package of Kekule.
- Source:
Classes
- BaseMdlReader
- BaseMdlWriter
- ChemDataReader
- ChemDataReader
- ChemDataReaderManager
- ChemDataType
- ChemDataWriter
- ChemDataWriter
- ChemDataWriterManager
- CmlChemStructureReader
- CmlChemStructureReader
- CmlDomUtils
- CmlElementHandler
- CmlElementReader
- CmlElementReaderFactory
- CmlElementWriter
- CmlElementWriterFactory
- CmlFormulaReader
- CmlFormulaWriter
- CmlListReader
- CmlListWriter
- CmlMetaDataListReader
- CmlMetaDataReader
- CmlMoleculeReader
- CmlMoleculeReader
- CmlMoleculeWriter
- CmlNameReader
- CmlNameReader
- CmlReactionReader
- CmlReactionReagentReader
- CmlReactionWriter
- CmlReader
- CmlRootReader
- CmlRootWriter
- CmlScalarReader
- CmlScalarWriter
- CmlUtils
- CmlWriter
- DataFormat
- DataFormatsManager
- KcjReader
- KcjWriter
- KcxReader
- KcxWriter
- MDL
- Mdl2kCTabWriter
- Mdl3kCTabWriter
- Mdl3kMoleculeCTabWriter
- MdlBlockHandler
- MdlBlockReader
- MdlBlockWriter
- MdlMoleculeReader
- MdlMoleculeWriter
- MdlMolReader
- MdlMolWriter
- MdlReactionReader
- MdlReactionWriter
- MdlReader
- MdlRxnReader
- MdlRxnWriter
- MdlSdReader
- MdlSdWriter
- MdlStructDataWriter
- MdlStructDataWriter
- MdlStructureFragmentReader
- MdlStructureFragmentWriter
- MdlUtils
- MdlWriter
- MimeType
- SMILES
- SmilesMolWriter
- SmilesUtils
Members
-
(static) MdlVersion
-
Enumeration of MDL MOL/RXN file versions.
Properties:
Name Type Description V2000
V3000
- Source:
Methods
-
(static) loadFileData(file, callback, formatId, options)
-
Load chem object from a File object. Note this function relies on FileApi support.
Parameters:
Name Type Description file
File callback
function Callback function when the file is loaded. Has two params (chemObj, success). formatId
String If not set, format will be get from file name automatically. options
Hash Additional options to read data. Different data format may have different options. - Source:
-
(static) loadFormatData(content, formatId, options) → {Kekule.ChemObject}
-
Load from content with certain format.
Parameters:
Name Type Description content
String formatId
String options
Hash Additional options to read data. Different data format may have different options. - Source:
Returns:
- Type
- Kekule.ChemObject
-
(static) loadMimeData(content, mimeType, options) → {Kekule.ChemObject}
-
Load from content with mimeType and create a new chem object.
Parameters:
Name Type Description content
String mimeType
String options
Hash Additional options to read data. Different data format may have different options. - Source:
Returns:
- Type
- Kekule.ChemObject
-
(static) loadResourceData(refStr, callback, resType, doc)
-
Load chem object from a predefined resource. When the loading process is done, callback will be called.
Parameters:
Name Type Description refStr
String callback
function Called after chem object is loaded. The callback Has two params (chemObj, success). resType
String set the resource type. If not set, the type will be generated automatically. doc
Document Root HTML document. If not set, current document will be used. -
(static) loadTypedData(content, mimeType, url, options) → {Kekule.ChemObject}
-
Load a typed content and create a new chem object, the type is recognized by mimeType or the file extension.
Parameters:
Name Type Description content
String mimeType
String url
String options
Hash Additional options to read data. Different data format may have different options. - Source:
Returns:
- Type
- Kekule.ChemObject
-
(static) loadUrlData(fileUrl, callback, formatId, options)
-
Load chem object from a URL. Note this function relies on AJAX support.
Parameters:
Name Type Description fileUrl
String callback
function Callback function when the file is loaded. Has two params (chemObj, success). formatId
String If not set, format will be get from file name automatically. options
Hash Additional options to read data. Different data format may have different options. - Source:
-
(static) saveFormatData(content, formatId, options) → {Kekule.ChemObject}
-
Save chemObj with certain format.
Parameters:
Name Type Description content
String formatId
String options
Hash Additional options to save data. Different data format may have different options. - Source:
Returns:
- Type
- Kekule.ChemObject
-
(static) saveMimeData(chemObj, mimeType, options) → {String}
-
Save chemObj to string of mimeType.
Parameters:
Name Type Description chemObj
Kekule.ChemObject mimeType
String options
Hash Additional options to save data. Different data format may have different options. - Source:
Returns:
- Type
- String
-
(static) saveTypedData(chemObj, mimeType, urlOrFileExt, options) → {Variant}
-
Save chem object to a typed content. The type is recognized by mimeType or the file extension.
Parameters:
Name Type Description chemObj
Kekule.ChemObj mimeType
String urlOrFileExt
String URL or file ext. options
Hash Additional options to save data. Different data format may have different options. - Source:
Returns:
- Type
- Variant