Class InsertingDiagramWriter

  • All Implemented Interfaces:
    java.io.Serializable

    public class InsertingDiagramWriter
    extends AbstractDiagramWriter
    This implementation of AbstractDiagramWriter inserts the result into an existing file. The file must exist and contain the following marker:
     
     'diagramName
     @startuml
     @enduml
     
     
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InsertingDiagramWriter​(java.io.File file)
      Constructs the writer with the target file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(java.lang.String name, java.lang.String diagram)
      Writes the diagram to the location specified by the writer implementation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InsertingDiagramWriter

        public InsertingDiagramWriter​(java.io.File file)
        Constructs the writer with the target file.
        Parameters:
        file - the output file
    • Method Detail

      • write

        public void write​(java.lang.String name,
                          java.lang.String diagram)
                   throws java.io.IOException
        Description copied from class: AbstractDiagramWriter
        Writes the diagram to the location specified by the writer implementation.
        Specified by:
        write in class AbstractDiagramWriter
        Parameters:
        name - the name of the diagram
        diagram - the diagram
        Throws:
        java.io.IOException - if an I/O error occurs