chemaxon.metabolizer
Class MetabolizerFileImporter

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

public class MetabolizerFileImporter
extends java.lang.Object
implements MetabolizerImporter

Thiss class is the file specific implementation of MetabolizerImporter interface

Author:
Attila Szabo

Constructor Summary
MetabolizerFileImporter(java.io.File input)
           
MetabolizerFileImporter(java.lang.String path)
           
 
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

MetabolizerFileImporter

public MetabolizerFileImporter(java.io.File input)
                        throws MetabolizerIOException
Parameters:
input -
Throws:
MetabolizerIOException

MetabolizerFileImporter

public MetabolizerFileImporter(java.lang.String path)
                        throws MetabolizerIOException
Parameters:
path -
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