Class DotGxlWriter


  • public class DotGxlWriter
    extends Object
    This is a writer of .gxl file from a tree.

    The .gxl file format is an XML dialect for the .dot file format. It is defined on Graph eXchange Language page.

    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

      • DotGxlWriter

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

        public DotGxlWriter​(Writer outputStream)
        Create a new gxl 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 .gxl 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.