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 Details

    • DefaultEventChemObjectReader

      public DefaultEventChemObjectReader()
  • Method Details

    • accepts

      public boolean accepts(IChemObject object)
    • accepts

      public boolean accepts(Class<? extends IChemObject> objectClass)
      Description copied from interface: IChemObjectIO
      Returns whether the given IChemObject can be read or written.
      Specified by:
      accepts in interface IChemObjectIO
      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.