Interface ImportOptions


@PublicApi public interface ImportOptions
Common interface for ImportOptions classes to use in ServiceLoader.
Since:
Marvin 6.3
  • Method Details

    • createImporter

      default MolImporter createImporter(InputStream inputStream) throws IOException
      Creates a MolImporter 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

      default Molecule importMolAndClose(InputStream inputStream) throws IOException
      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