Example #1
0
        private IMolecule readMolecule(IMolecule molecule)
        {
            JmolAdapter adapter = new SmarterJmolAdapter();

            // note that it actually let's the adapter detect the format!
            System.Object model = adapter.openBufferedReader("", input);
            molecule.add(new Convertor(molecule.Builder).convert(model));
            return(molecule);
        }
Example #2
0
 private IMolecule readMolecule(IMolecule molecule)
 {
     JmolAdapter adapter = new SmarterJmolAdapter();
     // note that it actually let's the adapter detect the format!
     System.Object model = adapter.openBufferedReader("", input);
     molecule.add(new Convertor(molecule.Builder).convert(model));
     return molecule;
 }