从Java调用Graphviz点 [英] Calling Graphviz dot from Java

查看:57
本文介绍了从Java调用Graphviz点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Java程序调用外部程序(在这种情况下为graphviz的点)并获取输出的最佳方法是什么?

What's the best way to call an external program (graphviz's dot in this case) from a Java program and grab the output?

推荐答案

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

这篇关于从Java调用Graphviz点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆