ambit2.core.io
Class IteratingFolderReader<T,ItemReader extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader>
java.lang.Object
org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
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
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 |
files
protected java.io.File[] files
index
protected int index
reader
protected ItemReader extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader reader
IteratingFolderReader
public IteratingFolderReader(java.io.File[] files)
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