ambit2.core.io
Class IteratingChemObjectReaderWrapper

Package class diagram package IteratingChemObjectReaderWrapper
java.lang.Object
  extended by org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
      extended by 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
           
 
Constructor Summary
IteratingChemObjectReaderWrapper(org.openscience.cdk.io.DefaultChemObjectReader reader)
           
 
Method Summary
 void close()
           
 org.openscience.cdk.io.formats.IResourceFormat getFormat()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 java.lang.String toString()
           
 
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
 

Field Detail

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
Constructor Detail

IteratingChemObjectReaderWrapper

public IteratingChemObjectReaderWrapper(org.openscience.cdk.io.DefaultChemObjectReader reader)
Method Detail

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