Class DefaultEventChemObjectReader

All Implemented Interfaces:
Closeable, AutoCloseable, IChemObjectIO, IEventChemObjectReader
Direct Known Subclasses:

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:
Belongs to CDK module:
  • 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
      objectClass - IChemObject of which is tested if it can be handled.
      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.