Class DefaultDiagramWriter
- java.lang.Object
-
- io.gitlab.plunts.gradle.plantuml.plugin.output.AbstractDiagramWriter
-
- io.gitlab.plunts.gradle.plantuml.plugin.output.DefaultDiagramWriter
-
- All Implemented Interfaces:
java.io.Serializable
public class DefaultDiagramWriter extends AbstractDiagramWriter
This implementation ofAbstractDiagramWriterwrites the result to a file. If it does not exist, it will be created (including directories). Any previous content will be overwritten.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultDiagramWriter(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
-
-