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
ExecutionExceptionpublic 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.ConcurrentIteratortrue if there are more moleculesInterruptedExceptionExecutionExceptionpublic Object getNext() throws InterruptedException, ExecutionException
getNext in interface chemaxon.util.concurrent.util.ConcurrentIteratorInterruptedExceptionExecutionExceptionprotected Molecule read(MolImporter importer) throws IOException
IOExceptionpublic void close()
throws ExecutionException
ExecutionException