title: Indenting Java Output
body: <p>I am generating a graphviz DOT file in a Java program (here is a example of what one looks like: <a href="http://www.graphviz.org/Gallery/directed/cluster.html" rel="nofollow noreferrer">http://www.graphviz.org/Gallery/directed/cluster.html</a>). I want to automatically indent this file based on the braces. Is there an easy way to do this in Java? Thanks!</p>