|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.marvin.io.MolImportModule
chemaxon.marvin.io.formats.mdl.MolImport
Imports MDL Molfile, SDfile, RGfile, RDfile, Rxnfile and (ChemAxon) compressed molfile. In the Molfiles documentation, you can find details about import options.
| Field Summary |
| Fields inherited from interface chemaxon.struc.StereoConstants |
ATOMSTEREO_EITHER, ATOMSTEREO_MASK, ATOMSTEREO_NONE, ATOMSTEREO_SPECIFIC, CHIRALITY_MASK, CHIRALITY_R, CHIRALITY_S, CHIRALITYSUPPORT_ALL, CHIRALITYSUPPORT_NONE, CHIRALITYSUPPORT_SELECTED, CIS, CTUMASK, CTUNKNOWN, CTUNSPEC, DBS_ALL, DBS_MARKED, DBS_NONE, PARITY_EITHER, PARITY_EVEN, PARITY_MASK, PARITY_ODD, PARITY_UNSPEC, STGRP_ABS, STGRP_AND, STGRP_NONE, STGRP_OR, TRANS |
| Constructor Summary | |
MolImport()
|
|
| Method Summary | |
Molecule |
createMol()
Creates a new target molecule object. |
protected int |
getMolfileVersion()
Gets the molfile version. |
void |
initMolImport(MolInputStream is)
Initializes the import module. |
boolean |
readMol(Molecule mol)
Reads a molecule from MDL mol/sdf/rxn file. |
void |
setOptions(java.lang.String opts)
Sets the import options. |
| Methods inherited from class chemaxon.marvin.io.MolImportModule |
isDocumentImporter, readDocument |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MolImport()
| Method Detail |
public void setOptions(java.lang.String opts)
setOptions in class MolImportModuleopts - import options
public void initMolImport(MolInputStream is)
throws MolFormatException,
java.io.IOException
initMolImport in class MolImportModuleis - the molecule input stream
MolFormatException - if the file cannot be read because of
a molecule file format related error
java.io.IOException - an I/O error occured while reading the file
public boolean readMol(Molecule mol)
throws MolFormatException,
java.io.IOException
readMol in class MolImportModulemol - the molecule object to read into
MolFormatException - if the file is in bad format
java.io.IOException - in case of I/O errorpublic Molecule createMol()
createMol in class MolImportModuleMolecule, RgMolecule or RxnMoleculeprotected int getMolfileVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||