chemaxon.metabolizer
Class MetabolizerMemoryImporter

java.lang.Object
  extended by chemaxon.metabolizer.MetabolizerMemoryImporter
All Implemented Interfaces:
MetabolizerImporter

public class MetabolizerMemoryImporter
extends java.lang.Object
implements MetabolizerImporter

This class is the memory based implementation of MetabolizerImporter interface

Author:
maugli

Constructor Summary
MetabolizerMemoryImporter(java.util.List<Molecule> substrates)
           
 
Method Summary
 void close()
          Closes importer.
 long getMoleculeCount()
          Returns the count of substrates
 boolean hasNext()
          Returns true if iteration has more substrate
 Molecule next()
          Retunrs following substrate in the iteration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetabolizerMemoryImporter

public MetabolizerMemoryImporter(java.util.List<Molecule> substrates)
                          throws MetabolizerIOException
Parameters:
substrates -
Throws:
MetabolizerIOException
Method Detail

getMoleculeCount

public long getMoleculeCount()
                      throws MetabolizerIOException
Description copied from interface: MetabolizerImporter
Returns the count of substrates

Specified by:
getMoleculeCount in interface MetabolizerImporter
Returns:
the count of substrates
Throws:
MetabolizerIOException

next

public Molecule next()
              throws MetabolizerIOException
Description copied from interface: MetabolizerImporter
Retunrs following substrate in the iteration

Specified by:
next in interface MetabolizerImporter
Returns:
following substrate
Throws:
MetabolizerIOException

hasNext

public boolean hasNext()
                throws MetabolizerIOException
Description copied from interface: MetabolizerImporter
Returns true if iteration has more substrate

Specified by:
hasNext in interface MetabolizerImporter
Returns:
true if iteration has more substrate
Throws:
MetabolizerIOException

close

public void close()
           throws MetabolizerIOException
Description copied from interface: MetabolizerImporter
Closes importer. Releases resources.

Specified by:
close in interface MetabolizerImporter
Throws:
MetabolizerIOException