Here you can find the source of indent(final int i, StringBuffer b)
private static void indent(final int i, StringBuffer b)
//package com.java2s; public class Main { private static final String SPACES = " "; private static void indent(final int i, StringBuffer b) { if (i > SPACES.length()) { b.append(SPACES);/*ww w.jav a 2s.c o m*/ indent(i - SPACES.length(), b); } else { b.append(SPACES.substring(0, i)); } } }