Interface IChemObjectWriter

All Superinterfaces:
AutoCloseable, Closeable, IChemObjectIO
All Known Implementing Classes:
CDKOWLWriter, CDKSourceCodeWriter, CMLWriter, CrystClustWriter, DefaultChemObjectWriter, GaussianInputWriter, HINWriter, MDLRXNWriter, MDLV2000Writer, MDLV3000Writer, Mol2Writer, Mopac7Writer, PDBWriter, RGroupQueryWriter, RssWriter, SDFWriter, ShelXWriter, SMILESWriter, XYZWriter

public interface IChemObjectWriter extends IChemObjectIO
This class is the interface that all IO writers should implement. Programs need only care about this interface for any kind of IO.

Currently, database IO and file IO is supported. Internet IO is expected.

Source code:
main
Belongs to CDK module:
io
  • Method Details

    • write

      void write(IChemObject object) throws CDKException
      Writes the content of "object" to output.
      Parameters:
      object - the object of which the content is outputted
      Throws:
      CDKException - is thrown if the output does not support the data in the object
    • setWriter

      void setWriter(Writer writer) throws CDKException
      Sets the Writer from which this ChemObjectWriter should write the contents.
      Throws:
      CDKException
    • setWriter

      void setWriter(OutputStream writer) throws CDKException
      Sets the OutputStream from which this ChemObjectWriter should write the contents.
      Throws:
      CDKException