public class MolInputProducer extends Object implements InputProducer
MolImporter
object.
Produces Molecule
objects for the concurrent plugin examples.Constructor and Description |
---|
MolInputProducer()
Constructor.
|
MolInputProducer(MolImporter importer)
Constructor.
|
MolInputProducer(MolImporter[] importers)
Constructor.
|
public MolInputProducer() throws ExecutionException
ExecutionException
public MolInputProducer(MolImporter importer)
importer
- the molecule importer objectpublic MolInputProducer(MolImporter[] importers)
importers
- the molecule importer objectspublic boolean hasNext() throws InterruptedException, ExecutionException
true
if there are more molecules,
false
if end has been reached.hasNext
in interface chemaxon.util.concurrent.util.ConcurrentIterator
true
if there are more moleculesInterruptedException
ExecutionException
public Object getNext() throws InterruptedException, ExecutionException
getNext
in interface chemaxon.util.concurrent.util.ConcurrentIterator
InterruptedException
ExecutionException
protected Molecule read(MolImporter importer) throws IOException
IOException
public void close() throws ExecutionException
ExecutionException