private static char [ ] getIndent ( int indentSize , Map < Integer , char [ ] > indentCache ) { char [ ] indent = indentCache . get ( indentSize ) ; if ( indent == null ) { indent = new char [ indentSize ] ; Arrays . fill ( indent , SPACE ) ; indentCache . put ( indentSize , indent ) ; } return indent ; }
Creates new indent if it not exists in the indent cache .