Class InsertingDiagramWriter
- java.lang.Object
-
- io.gitlab.plunts.gradle.plantuml.plugin.output.AbstractDiagramWriter
-
- io.gitlab.plunts.gradle.plantuml.plugin.output.InsertingDiagramWriter
-
- All Implemented Interfaces:
java.io.Serializable
public class InsertingDiagramWriter extends AbstractDiagramWriter
This implementation ofAbstractDiagramWriterinserts 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 voidwrite(java.lang.String name, java.lang.String diagram)Writes the diagram to the location specified by the writer implementation.
-
-
-
Method Detail
-
write
public void write(java.lang.String name, java.lang.String diagram) throws java.io.IOExceptionDescription copied from class:AbstractDiagramWriterWrites the diagram to the location specified by the writer implementation.- Specified by:
writein classAbstractDiagramWriter- Parameters:
name- the name of the diagramdiagram- the diagram- Throws:
java.io.IOException- if an I/O error occurs
-
-