Class DefaultEventChemObjectReader
- java.lang.Object
-
- org.openscience.cdk.io.ChemObjectIO
-
- org.openscience.cdk.io.iterator.event.DefaultEventChemObjectReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IChemObjectIO
,IEventChemObjectReader
- Direct Known Subclasses:
EventCMLReader
public abstract class DefaultEventChemObjectReader extends ChemObjectIO implements IEventChemObjectReader
Abstract class that IteratingChemObjectReader's can implement to have it take care of basic stuff, like managing the ReaderListeners.- Source code:
- main
- Belongs to CDK module:
- io
-
-
Constructor Summary
Constructors Constructor Description DefaultEventChemObjectReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(Class<? extends IChemObject> objectClass)
Returns whether the givenIChemObject
can be read or written.boolean
accepts(IChemObject object)
protected void
fireFrameRead()
Sends a frame read event to the registered ReaderListeners.void
remove()
File IO generally does not support removing of entries.-
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
addChemObjectIOListener, addSetting, addSettings, close, getFormat, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
-
Methods inherited from interface org.openscience.cdk.io.iterator.event.IEventChemObjectReader
getAtomContainer
-
-
-
-
Method Detail
-
accepts
public boolean accepts(IChemObject object)
-
accepts
public boolean accepts(Class<? extends IChemObject> objectClass)
Description copied from interface:IChemObjectIO
Returns whether the givenIChemObject
can be read or written.- Specified by:
accepts
in interfaceIChemObjectIO
- Parameters:
objectClass
-IChemObject
of which is tested if it can be handled.- Returns:
- true, if the
IChemObject
can be handled.
-
remove
public void remove()
File IO generally does not support removing of entries.
-
fireFrameRead
protected void fireFrameRead()
Sends a frame read event to the registered ReaderListeners.
-
-