Class PlantUmlContentTransformer

    • Constructor Detail

      • PlantUmlContentTransformer

        public PlantUmlContentTransformer()
    • Method Detail

      • plantumlToRawSvg

        public static java.lang.String plantumlToRawSvg​(java.lang.String plant)
                                                 throws java.io.IOException
        Converts PlantUML diagram to SVG as a String.
        Parameters:
        plant - The Plant UML description.
        Returns:
        The generated SVG as an XML string.
        Throws:
        java.io.IOException - If writing to file fails.
      • plantumlToImage

        public static java.nio.file.Path plantumlToImage​(java.lang.String plant,
                                                         java.lang.String imageExt)
                                                  throws java.io.IOException
        Converts PlantUML diagram to a temporary image file.
        Parameters:
        plant - The Plant UML description.
        imageExt - The file extension (and therefore type) of the image.
        Returns:
        The path to the generated image.
        Throws:
        java.io.IOException - If writing to file fails.