Class EventCMLReader

All Implemented Interfaces:
Closeable, AutoCloseable, IChemObjectIO, IEventChemObjectReader

public class EventCMLReader extends DefaultEventChemObjectReader
Reads a molecule in CML 1.x and 2.0 format. CML is an XML based application [Murray-Rust, P. and Rzepa, H.S.. Journal of Chemical Information and Computer Sciences. 1999. 39], and this Reader applies the method described in [Willighagen, E.L.. Internet Journal of Chemistry. 2001. 4].
Author:
Egon L. Willighagen
Source code:
main
Belongs to CDK module:
io
Keywords:
file format, CML
Created on:
2001-02-01
  • Constructor Details

    • EventCMLReader

      public EventCMLReader(Reader input, IReaderListener listener, IChemObjectBuilder builder)
      Define this CMLReader to take the input from a java.io.Reader class. Possible readers are (among others) StringReader and FileReader. The given ReaderListener catches the events thrown to signal that a a new molecule is read.
      Parameters:
      input - Reader type input
      listener - ReaderListener that listens to newMolecule events.
  • Method Details