Package chemaxon.formats
Interface ImportOptions
Common interface for ImportOptions classes to use in ServiceLoader.
- Since:
- Marvin 6.3
-
Method Summary
Modifier and TypeMethodDescriptiondefault MolImporter
createImporter
(InputStream inputStream) Creates aMolImporter
from the given input stream.default Molecule
importMolAndClose
(InputStream inputStream) Imports a molecule from the given stream and closes the stream.
-
Method Details
-
createImporter
Creates aMolImporter
from 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
-