|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molwind.chemical.io.SDFileIterator
public class SDFileIterator
SDFileIterator reads sdf formatted files of chemical compounds.
| Constructor Summary | |
|---|---|
SDFileIterator(java.io.File[] theFiles,
RelationshipResolver resolver)
Creates a new chemical entity iterator based on the underlying SD files using the given relationship resolver. |
|
| Method Summary | |
|---|---|
DefaultEntityGraph |
getDefaultEntityGraph()
Returns the Graph for the given file |
boolean |
hasNext()
Returns true if the iteration has more elements. |
java.lang.Object |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator. |
void |
setFileReader(java.io.File f)
Sets the file reader |
void |
setFileReader(java.lang.String name)
Sets the file reader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SDFileIterator(java.io.File[] theFiles,
RelationshipResolver resolver)
theFiles - array of one or more fileresolver - the relationship resolver strategy| Method Detail |
|---|
public void setFileReader(java.io.File f)
throws java.io.IOException
the - file to be read
java.io.IOExceptionpublic void setFileReader(java.lang.String name)
the - filename of the file to be read
public DefaultEntityGraph getDefaultEntityGraph()
throws java.io.IOException
java.io.IOExceptionpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||