Call Graphviz Point from Java

What is the best way to call an external program (plot point in this case) from a Java program and capture output?

+3
source share
2 answers

Runtime.exec () and ProcessBuilder do this. You use one of them to create your process, and then call it getInputStream to get the output of the running process.

+1
source

You can use the Graphviz Java API class , which is the wrapper for Runtime.exec (), this is if you have the point binaries on the same server as your Java application.

If you don’t have a point installed on the server, or if you use an environment such as Google AppEngine, where you cannot install binary point files locally, you can use Graphviz Server , a lightweight Java-based HTTP server, you don’t care you need to install the point binaries on the server on which you are running Graphviz Server.

+4
source

Source: https://habr.com/ru/post/977017/


All Articles