|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.util.concurrent.marvin.MolInputProducer
public class MolInputProducer
Input producer wrapping a MolImporter object.
Produces Molecule objects for the concurrent plugin examples.
| Constructor Summary | |
|---|---|
MolInputProducer()
Constructor. |
|
MolInputProducer(MolImporter importer)
Constructor. |
|
MolInputProducer(MolImporter[] importers)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the importers. |
java.lang.Object |
getNext()
Returns the next input molecule. |
boolean |
hasNext()
Returns true if there are more molecules,
false if end has been reached. |
protected Molecule |
read(MolImporter importer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MolInputProducer()
throws edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
edu.emory.mathcs.backport.java.util.concurrent.ExecutionExceptionpublic MolInputProducer(MolImporter importer)
importer - the molecule importer objectpublic MolInputProducer(MolImporter[] importers)
importers - the molecule importer objects| Method Detail |
|---|
public boolean hasNext()
throws java.lang.InterruptedException,
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
true if there are more molecules,
false if end has been reached.
hasNext in interface chemaxon.util.concurrent.util.ConcurrentIteratortrue if there are more molecules
java.lang.InterruptedException
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
public java.lang.Object getNext()
throws java.lang.InterruptedException,
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
getNext in interface chemaxon.util.concurrent.util.ConcurrentIteratorjava.lang.InterruptedException
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
protected Molecule read(MolImporter importer)
throws java.io.IOException
java.io.IOException
public void close()
throws edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||