|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.io.MolExportModule
chemaxon.marvin.io.formats.mdl.MolExport
public class MolExport
Exports MDL Molfile, SDfile, RGfile, RDfile, Rxnfile and (ChemAxon) compressed molfile. In the Molfiles documentation, you can find details about export options.
| Field Summary |
|---|
| Fields inherited from class chemaxon.marvin.io.MolExportModule |
|---|
aromatize, stringBuffer |
| 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 | |
|---|---|
MolExport()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
appendMEnd(Molecule mol)
Appends the "M END" line to the string buffer. |
java.lang.Object |
convert(Molecule mol)
Creates an MDL mol or compressed mol representation of the molecule. |
protected void |
convertCoordinateBondsToData(Molecule mol)
Converts coordinate bonds to data sgroups (attached data) with field name MRV_COORDINATE_BOND. |
protected void |
convertMultiCenterSgroupsToData(Molecule mol)
Converts the multicenter sgroups to data sgroups in the molecule. |
protected void |
convertPageSettingsToData(Molecule mol)
Converts page setting of multipage molecular document to data sgroups (attached data) with field name MRV_PAGE_XXX. |
protected int |
getMolfileVersion()
Gets the molfile version. |
protected void |
getOptionDescriptors(java.lang.String fmtname,
java.lang.String optnames,
java.util.List l)
Gets the option descriptors. |
java.lang.Object |
open(java.lang.String fmtopts)
Open the exporter stream. |
protected int |
parseOption(java.lang.String opts,
int i)
Parses the bond length (b###) option. |
| Methods inherited from class chemaxon.marvin.io.MolExportModule |
|---|
addData, appendChars, appendLeft, appendRight, appendRight, close, getEncoding, getFormat, getOptionDescriptors, getOptionDescriptors, getOptions, getOptionSign, isCleanable, isDocumentExport, isImplicitHcountImportant, isImplicitHcountImportant, isSupportedEncoding, open, parseCharIfOptionSign, preconvert, preconvert, preconvert, preconvert, setEncoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MolExport()
| Method Detail |
|---|
protected void getOptionDescriptors(java.lang.String fmtname,
java.lang.String optnames,
java.util.List l)
getOptionDescriptors in class MolExportModulefmtname - the format name or nulloptnames - option names or null for alll - the output list
public java.lang.Object open(java.lang.String fmtopts)
throws MolExportException
open in class MolExportModulefmtopts - output file format and options
MolExportException - Invalid format string.MolExportModule.getFormat(),
MolExportModule.getOptions()
protected int parseOption(java.lang.String opts,
int i)
throws java.lang.IllegalArgumentException
parseOption in class MolExportModuleopts - the options stringi - the current index
java.lang.IllegalArgumentException - in case of parsing error
public java.lang.Object convert(Molecule mol)
throws MolExportException
convert in class MolExportModulemol - the molecule
MolExportException - cannot be converted to MDL molfileprotected int getMolfileVersion()
protected void appendMEnd(Molecule mol)
mol - the moleculeprotected void convertMultiCenterSgroupsToData(Molecule mol)
mol - the molecule that contains the sgroups to convertprotected void convertPageSettingsToData(Molecule mol)
mol - molecule to convertprotected void convertCoordinateBondsToData(Molecule mol)
mol - molecule to convert
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||