Class DotDotWriter


  • public class DotDotWriter
    extends Object
    This is a writer of .dot file from a tree.

    The .dot file format is defined by the GraphViz project.

    Since:
    13.0
    Version:
    17.0 2020-01-04 14:41:41
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    mathtree
    • Constructor Detail

      • DotDotWriter

        public DotDotWriter​(OutputStream outputStream)
        Create a new dot writer that output inside the given output stream.
        Parameters:
        outputStream - is the stream to write in.
      • DotDotWriter

        public DotDotWriter​(Writer outputStream)
        Create a new dot writer that output inside the given output stream.
        Parameters:
        outputStream - is the stream to write in.
    • Method Detail

      • write

        public void write​(Tree<?,​?> tree)
                   throws IOException
        Write the given tree inside the .dot output stream.
        Parameters:
        tree - is the tree to write
        Throws:
        IOException - in case of error
      • close

        public void close()
                   throws IOException
        Close the output stream.
        Throws:
        IOException - in case of error.