Package moss

Class SDfileWriter

All Implemented Interfaces:
Closeable, Flushable, Serializable, Appendable, AutoCloseable

public class SDfileWriter extends GraphWriter
Class for writers for structure-data files (SDfile, Elsevier MDL).
Since:
2007.02.24
See Also:
  • Constructor Details

    • SDfileWriter

      public SDfileWriter(Writer writer, int mode)
      Create a writer for SDfiles.
      Parameters:
      writer - the writer to write to
      mode - the write mode
      Since:
      2007.03.04 (Christian Borgelt)
  • Method Details

    • writeHeader

      public void writeHeader() throws IOException
      Write a header.

      This function does nothing, since headers are not supported with SDfiles.

      Specified by:
      writeHeader in class GraphWriter
      Throws:
      IOException - if an i/o error occurs
      Since:
      2007.03.04 (Christian Borgelt)
    • writeGraph

      public void writeGraph() throws IOException
      Write a description of the current graph.
      Specified by:
      writeGraph in class GraphWriter
      Throws:
      IOException - if an i/o error occurs
      Since:
      2007.03.04 (Christian Borgelt)