ambit2.core.io
Class IteratingChemObjectReaderWrapper
java.lang.Object
org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
ambit2.core.io.IteratingChemObjectReaderWrapper
- All Implemented Interfaces:
- java.util.Iterator, org.openscience.cdk.io.IChemObjectIO, org.openscience.cdk.io.iterator.IIteratingChemObjectReader
public class IteratingChemObjectReaderWrapper
- extends org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
A wrapper for DefaultChemObjectReader
.
Mostly for keeping track of file name and presenting it to the user :)
Field Summary |
protected org.openscience.cdk.interfaces.IMoleculeSet |
atomContainers
|
protected org.openscience.cdk.interfaces.IChemObject |
chemObject
|
protected org.openscience.cdk.io.formats.IResourceFormat |
format
|
protected int |
record
|
Methods inherited from class org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader |
accepts, addChemObjectIOListener, fireFrameRead, fireIOSettingQuestion, getIOSettings, remove, removeChemObjectIOListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
chemObject
protected org.openscience.cdk.interfaces.IChemObject chemObject
format
protected org.openscience.cdk.io.formats.IResourceFormat format
atomContainers
protected org.openscience.cdk.interfaces.IMoleculeSet atomContainers
record
protected int record
IteratingChemObjectReaderWrapper
public IteratingChemObjectReaderWrapper(org.openscience.cdk.io.DefaultChemObjectReader reader)
getFormat
public org.openscience.cdk.io.formats.IResourceFormat getFormat()
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
hasNext
public boolean hasNext()
next
public java.lang.Object next()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object