@ Override public void write ( IChemObject object ) throws UnsupportedChemObjectException { if ( object instanceof ICrystal ) { writeCrystal ( ( ICrystal ) object ) ; } else if ( object instanceof IChemSequence ) { writeChemSequence ( ( IChemSequence ) object ) ; } else { throw new UnsupportedChemObjectException ( "This object type is not supported." ) ; } }
Serializes the IChemObject to CrystClust format and redirects it to the output Writer .