Package org.openscience.cdk.io
Class DefaultChemObjectReader
java.lang.Object
org.openscience.cdk.io.ChemObjectIO
org.openscience.cdk.io.DefaultChemObjectReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IChemObjectIO
,IChemObjectReader
,ISimpleChemObjectReader
public abstract class DefaultChemObjectReader
extends ChemObjectIO
implements ISimpleChemObjectReader
Abstract class that ChemObjectReader's can implement to have it
take care of basic stuff, like managing the ReaderListeners.
- Source code:
- main
- Belongs to CDK module:
- io
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openscience.cdk.io.IChemObjectReader
IChemObjectReader.Mode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IChemObjectReaderErrorHandler
protected IChemObjectReader.Mode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Sends a frame read event to the registered ReaderListeners.void
handleError
(String message) void
handleError
(String message, int row, int colStart, int colEnd) void
handleError
(String message, int row, int colStart, int colEnd, Exception exception) void
handleError
(String message, Exception exception) void
void
Methods inherited from class org.openscience.cdk.io.ChemObjectIO
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openscience.cdk.io.IChemObjectIO
accepts, addChemObjectIOListener, addSetting, addSettings, close, getFormat, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
Methods inherited from interface org.openscience.cdk.io.IChemObjectReader
setReader, setReader
Methods inherited from interface org.openscience.cdk.io.ISimpleChemObjectReader
read
-
Field Details
-
mode
-
errorHandler
-
-
Constructor Details
-
DefaultChemObjectReader
public DefaultChemObjectReader()
-
-
Method Details
-
fireFrameRead
protected void fireFrameRead()Sends a frame read event to the registered ReaderListeners. -
setReaderMode
- Specified by:
setReaderMode
in interfaceIChemObjectReader
-
setErrorHandler
- Specified by:
setErrorHandler
in interfaceIChemObjectReader
-
handleError
- Specified by:
handleError
in interfaceIChemObjectReader
- Throws:
CDKException
-
handleError
- Specified by:
handleError
in interfaceIChemObjectReader
- Throws:
CDKException
-
handleError
- Specified by:
handleError
in interfaceIChemObjectReader
- Throws:
CDKException
-
handleError
public void handleError(String message, int row, int colStart, int colEnd, Exception exception) throws CDKException - Specified by:
handleError
in interfaceIChemObjectReader
- Throws:
CDKException
-