Class Indenter

java.lang.Object
com.illumon.util.text.Indenter

public class Indenter
extends Object
Simple utility class for managing the indentation of generated code.

Pass the indenter to your StringBuilder; calling increaseLevel or decreaseLevel as you start and finish your indentation blocks.