public class GraphvizEngine extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
Constructor and Description |
---|
GraphvizEngine()
Create a new GraphvizEngine instance.
|
GraphvizEngine(String graphvizVersion)
Create a new GraphvizEngine instance
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the GraphvizEngine instance
|
String |
execute(String src)
Execute GraphViz with default options (
Format.SVG ) |
String |
execute(String src,
Options options)
Execute GraphViz
|
protected void |
finalize()
The
GraphvizJsFlowGenerator uses a ThreadLocal+SoftReference map to cache the
GraphvisEngines . |
public GraphvizEngine() throws IOException
IOException
public GraphvizEngine(String graphvizVersion) throws IOException
graphvizVersion
- version of the the VisJs engine to initiateIOException
public String execute(String src) throws IOException, FlowGenerationException
Format.SVG
)src
- dot fileFormat.SVG
stringIOException
- when VizJs files can't be found on the classpathFlowGenerationException
- when a JavaScript engine error occurspublic String execute(String src, Options options) throws IOException, FlowGenerationException
src
- dot fileoptions
- see Options
Format
IOException
- when VizJs files can't be found on the classpathFlowGenerationException
- when a JavaScript engine error occurspublic void close()
protected void finalize() throws Throwable
GraphvizJsFlowGenerator
uses a ThreadLocal+SoftReference map to cache the
GraphvisEngines
. This method ensures that the engine is destroyed properly.Copyright © 2023 Frank!Framework. All rights reserved.