/*
 * Copyright (c) 1998-2014 ChemAxon Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * ChemAxon. You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the agreements
 * you entered into with ChemAxon.
 *
 */

package io.basic;

import java.io.IOException;

import chemaxon.formats.MolImporter;
import chemaxon.struc.Molecule;

/**
 * ImportIterator is a basic example of iterating on molecules imported by
 * MolImporter
 * 
 * @author Erika Biro
 * @version 2015.05.21.
 * @since Marvin 5.11.
 */
public class ImportIterator {

	public static void main(String args[]) {
		try {
			for (Molecule molecule : new MolImporter(
					"examples/io/basic/mols.sdf")) {
				System.out.println(molecule.getAtomCount());
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
