Class MDLRXNReader
java.lang.Object
org.openscience.cdk.io.ChemObjectIO
org.openscience.cdk.io.DefaultChemObjectReader
org.openscience.cdk.io.MDLRXNReader
- All Implemented Interfaces:
Closeable, AutoCloseable, IChemObjectIO, IChemObjectReader, ISimpleChemObjectReader
Deprecated.
Use V2000 or V3000
Reads a molecule from an MDL RXN file [Dalby, A. et. al.. Journal of Chemical Information and Computer Sciences. 1992. 32].
- Author:
- Egon Willighagen
- Keywords:
- file format, MDL RXN
- Created on:
- 2003-07-24
-
Nested Class Summary
Nested classes/interfaces inherited from interface IChemObjectReader
IChemObjectReader.Mode -
Field Summary
FieldsFields inherited from class DefaultChemObjectReader
errorHandler, modeModifier and TypeFieldDescriptionprotected IChemObjectReaderErrorHandlerprotected IChemObjectReader.Mode -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.MDLRXNReader(InputStream input) Deprecated.MDLRXNReader(InputStream input, IChemObjectReader.Mode mode) Deprecated.MDLRXNReader(Reader in) Deprecated.Constructs a new MDLReader that can read Molecule from a given Reader.MDLRXNReader(Reader in, IChemObjectReader.Mode mode) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(Class<? extends IChemObject> classObject) Deprecated.Returns whether the givenIChemObjectcan be read or written.booleanaccepts(IChemObject object) Deprecated.voidclose()Deprecated.Closes this IChemObjectIO's resources.Deprecated.Returns theIResourceFormatclass for this IO class.<T extends IChemObject>
Tread(T object) Deprecated.Takes an object which subclasses IChemObject, e.g.Molecule, and will read this (from file, database, internet etc).voidsetReader(InputStream input) Deprecated.Sets the InputStream from which this ChemObjectReader should read the contents.voidDeprecated.Sets the Reader from which this ChemObjectReader should read the contents.Methods inherited from class DefaultChemObjectReader
fireFrameRead, handleError, handleError, handleError, handleError, setErrorHandler, setReaderModeModifier and TypeMethodDescriptionprotected voidSends a frame read event to the registered ReaderListeners.voidhandleError(String message) Redirects an error message to theIChemObjectReaderErrorHandler.voidhandleError(String message, int row, int colStart, int colEnd) Redirects an error message to theIChemObjectReaderErrorHandler.voidhandleError(String message, int row, int colStart, int colEnd, Exception exception) Redirects an error message to theIChemObjectReaderErrorHandler.voidhandleError(String message, Exception exception) Redirects an error message to theIChemObjectReaderErrorHandler.voidSets an error handler that is sent events when file format issues occur.voidSets the reader mode.Methods inherited from class ChemObjectIO
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerModifier and TypeMethodDescriptionvoidaddChemObjectIOListener(IChemObjectIOListener listener) Adds aIChemObjectIOListenerto this IChemObjectIO.<S extends IOSetting>
SaddSetting(IOSetting setting) Add an IOSetting to the reader/writer.voidaddSettings(Collection<IOSetting> settings) Adds a collection ofIOSettings to the reader/writer.protected voidfireIOSettingQuestion(IOSetting setting) FiresIChemObjectIOListener.processIOSettingQuestion(org.openscience.cdk.io.setting.IOSetting)for all managed listeners.Returns an array ofIOSettings defined by this IChemObjectIO class.Access all the listeners for this ChemObject Reader or Writer.<S extends IOSetting>
SgetSetting(String name) Access a named setting managed by this reader/writer.<S extends IOSetting>
SgetSetting(String name, Class<S> c) Access a named setting managed by this reader/writer.Access a collection ofIOSettings for this reader/writer.booleanhasSetting(String name) Determine whether this reader/writer has a setting of the provided name.voidRemoves aIChemObjectIOListenerfrom this IChemObjectIO.
-
Field Details
-
UNEXPECTED_END_OF_INPUT
-
-
Constructor Details
-
MDLRXNReader
Deprecated.Constructs a new MDLReader that can read Molecule from a given Reader.- Parameters:
in- The Reader to read from
-
MDLRXNReader
Deprecated. -
MDLRXNReader
Deprecated. -
MDLRXNReader
Deprecated. -
MDLRXNReader
public MDLRXNReader()Deprecated.
-
-
Method Details
-
getFormat
Deprecated.Description copied from interface:IChemObjectIOReturns theIResourceFormatclass for this IO class. -
setReader
Deprecated.Description copied from interface:IChemObjectReaderSets the Reader from which this ChemObjectReader should read the contents.- Throws:
CDKException
-
setReader
Deprecated.Description copied from interface:IChemObjectReaderSets the InputStream from which this ChemObjectReader should read the contents.- Throws:
CDKException
-
accepts
Deprecated.Description copied from interface:IChemObjectIOReturns whether the givenIChemObjectcan be read or written.- Parameters:
classObject-IChemObjectof which is tested if it can be handled.- Returns:
- true, if the
IChemObjectcan be handled.
-
read
Deprecated.Takes an object which subclasses IChemObject, e.g.Molecule, and will read this (from file, database, internet etc). If the specific implementation does not support a specific IChemObject it will throw an Exception.- Parameters:
object- The object that subclasses IChemObject- Returns:
- The IChemObject read
- Throws:
CDKException
-
accepts
Deprecated. -
close
Deprecated.Description copied from interface:IChemObjectIOCloses this IChemObjectIO's resources.- Throws:
IOException- when the wrapper IO class cannot be closed.
-