Package moss

Class LineWriter

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

public class LineWriter extends GraphWriter
Class for writers for simple table formats for graph data sets.
Since:
2007.03.04
See Also:
  • Field Details

    • FMTMASK

      public static final int FMTMASK
      read/write mode mask: table input formats
      See Also:
  • Constructor Details

    • LineWriter

      public LineWriter(Writer writer, int mode, Notation ntn)
      Create a simple table format writer.
      Parameters:
      writer - the writer to write to
      mode - the write mode
      ntn - the notation for the graph descriptions
      Since:
      2007.03.04 (Christian Borgelt)
  • Method Details

    • writeHeader

      public void writeHeader() throws IOException
      Write a header.
      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.02.24 (Christian Borgelt)