/* (non-Javadoc) * @see java.util.Iterator#next() */ public Object next() { return molecules.next(); }
/* (non-Javadoc) * @see org.openscience.cdk.io.ChemObjectIO#close() */ public void close() throws IOException { molecules.first(); }
/* (non-Javadoc) * @see java.util.Iterator#hasNext() */ public boolean hasNext() { return molecules.hasNext(); }
public MoleculesIteratorReader(IMoleculesIterator molecules) { super(); this.molecules = molecules; molecules.setSelectedIndex(-1); }