Package chemaxon.formats
Interface ImportOptions
Common interface for ImportOptions classes to use in ServiceLoader.
- Since:
- Marvin 6.3
-
Method Summary
Modifier and TypeMethodDescriptiondefault MolImportercreateImporter(InputStream inputStream) Creates aMolImporterfrom the given input stream.default MoleculeimportMolAndClose(InputStream inputStream) Imports a molecule from the given stream and closes the stream.
-
Method Details
-
createImporter
Creates aMolImporterfrom the given input stream. Primarily used in tests.- Parameters:
inputStream- an InputStream- Returns:
- new
MolImporter - Throws:
IOException- if an I/O error occurs
-
importMolAndClose
Imports a molecule from the given stream and closes the stream. Primarily used in tests.- Parameters:
inputStream- an InputStream- Returns:
- the first molecule in the given input
- Throws:
IOException- if an I/O error occurs
-