public static StringBuilder indentSpace ( int len ) { StringBuilder sB = new StringBuilder ( ) ; if ( len < 1 ) { return sB ; } while ( len > SPACES_LENGTH_MINUS_ONE ) { sB . append ( SPACES [ SPACES_LENGTH_MINUS_ONE ] ) ; len = len - SPACES_LENGTH_MINUS_ONE ; } return sB . append ( SPACES [ len ] ) ; }
Creates a new StringBuilder with the given number of spaces and returns it .