Package chemaxon.marvin.io.formats
Interface MoleculeImporterIface
- All Known Implementing Classes:
DocumentAnnotator
,MoleculeImporter
,MolImporter
Interface for molecule importer classes.
- Since:
- 5.7
-
Method Details
-
read
Read the next molecule from the stream/file.- Returns:
- the next molecule, or
null
if no more molecules can be imported. - Throws:
IOException
- If an error occurred during reading.
-
close
Close the underlying input stream. IMPORTANT: call this after reading molecules to close concurrent processing properly.- Throws:
IOException
- If an error has occurred.
-
getMolStream
Creates a Molecule Stream from the imported molecules. -
getMDocumentStream
Creates a stream of MDocuments from the imported molecuels. Adds MDocument to molecules that have none.
-