ambit2.core.io
Class IteratingFolderReader<T,ItemReader extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader>

Package class diagram package IteratingFolderReader
java.lang.Object
  extended by org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
      extended by ambit2.core.io.IteratingFolderReader<T,ItemReader>
All Implemented Interfaces:
java.util.Iterator, org.openscience.cdk.io.IChemObjectIO, org.openscience.cdk.io.iterator.IIteratingChemObjectReader
Direct Known Subclasses:
IteratingMolFolderReader, RawIteratingFolderReader

public abstract class IteratingFolderReader<T,ItemReader extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader>
extends org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader


Field Summary
protected  java.io.File[] files
           
protected  int index
           
protected  ItemReader reader
           
 
Constructor Summary
IteratingFolderReader(java.io.File[] files)
           
 
Method Summary
 void close()
           
protected  void closeItemReader(ItemReader itemReader)
           
 java.io.File[] getFiles()
           
 org.openscience.cdk.io.formats.IResourceFormat getFormat()
           
protected abstract  ItemReader getItemReader(int index)
           
protected  ItemReader getNextReader()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 void setFiles(java.io.File[] files)
           
 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

files

protected java.io.File[] files

index

protected int index

reader

protected ItemReader extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader reader
Constructor Detail

IteratingFolderReader

public IteratingFolderReader(java.io.File[] files)
Method Detail

getFormat

public org.openscience.cdk.io.formats.IResourceFormat getFormat()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getItemReader

protected abstract ItemReader getItemReader(int index)
                                                                                                        throws java.lang.Exception
Throws:
java.lang.Exception

closeItemReader

protected void closeItemReader(ItemReader itemReader)
                        throws java.io.IOException
Throws:
java.io.IOException

next

public java.lang.Object next()

hasNext

public boolean hasNext()

getNextReader

protected ItemReader getNextReader()
                                                                                               throws java.lang.Exception
Throws:
java.lang.Exception

getFiles

public java.io.File[] getFiles()

setFiles

public void setFiles(java.io.File[] files)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object