public String getIndentCharacters ( ) { if ( nrOfIndentSpace == 0 ) { return "" ; } if ( nrOfIndentSpace == INDENT_TAB ) { return "\t" ; } if ( nrOfIndentSpace < INDENT_TAB || nrOfIndentSpace > MAX_INDENT_SPACES ) { throw new FailureException ( "nrOfIndentSpace cannot be below -1 or above 255, was: " + nrOfIndentSpace ) ; } char [ ] chars = new char [ nrOfIndentSpace ] ; Arrays . fill ( chars , ' ' ) ; return new String ( chars ) ; }
Gets the indent characters from parameter .