MDLV2000Reader should be used
instead. The V2000 reader can actually read files missing the version tag when
in relaxed mode.@Deprecated public class MDLReader extends DefaultChemObjectReader
IChemSequence of IChemModel's. Each ChemModel will contain one
Molecule. If the MDL molfile contains a property block, the MDLV2000Reader should be
used.
If all z coordinates are 0.0, then the xy coordinates are taken as 2D, otherwise the coordinates are read as 3D.
The title of the MOL file is read and can be retrieved with:
molecule.getProperty(CDKConstants.TITLE);
MDLV2000Reader| Name | Question | Default |
|---|---|---|
| ForceReadAs3DCoordinates | Should coordinates always be read as 3D? | false |
IChemObjectReader.ModeerrorHandler, mode| Constructor and Description |
|---|
MDLReader()
Deprecated.
|
MDLReader(InputStream in)
Deprecated.
Constructs a new MDLReader that can read Molecule from a given InputStream.
|
MDLReader(InputStream in,
IChemObjectReader.Mode mode)
Deprecated.
|
MDLReader(Reader in)
Deprecated.
Constructs a new MDLReader that can read Molecule from a given Reader.
|
MDLReader(Reader in,
IChemObjectReader.Mode mode)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<? extends IChemObject> classObject)
Deprecated.
|
void |
close()
Deprecated.
|
void |
customizeJob()
Deprecated.
|
IResourceFormat |
getFormat()
Deprecated.
|
<T extends IChemObject> |
read(T object)
Deprecated.
Takes an object which subclasses IChemObject, e.g.
|
void |
setReader(InputStream input)
Deprecated.
|
void |
setReader(Reader input)
Deprecated.
|
fireFrameRead, handleError, handleError, handleError, handleError, setErrorHandler, setReaderModeaddChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerpublic MDLReader()
public MDLReader(InputStream in)
in - The InputStream to read frompublic MDLReader(InputStream in, IChemObjectReader.Mode mode)
public MDLReader(Reader in)
in - The Reader to read frompublic MDLReader(Reader in, IChemObjectReader.Mode mode)
public IResourceFormat getFormat()
public void setReader(Reader input) throws CDKException
CDKExceptionpublic void setReader(InputStream input) throws CDKException
CDKExceptionpublic boolean accepts(Class<? extends IChemObject> classObject)
public <T extends IChemObject> T read(T object) throws CDKException
object - The object that subclasses
IChemObjectCDKExceptionpublic void close()
throws IOException
IOExceptionpublic void customizeJob()
Copyright © 2017. All rights reserved.