@ Override public void write ( IChemObject object ) throws CDKException { if ( object instanceof IAtomContainerSet ) { writeAtomContainerSet ( ( IAtomContainerSet ) object ) ; } else if ( object instanceof IAtomContainer ) { writeAtomContainer ( ( IAtomContainer ) object ) ; } else { throw new CDKException ( "Only supported is writing of ChemFile and Molecule objects." ) ; } }
Writes the content from object to output .