code: @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.");
          }
      }
docs: Writes the content from object to output.
  
  @param   object  IChemObject of which the data is given as output.