List of utility methods to do String Indent Format
void | indent(final StringBuffer buffer, final String text, final int indent) Appends the given (multi-line) text to the buffer with the given indent count. if (text != null) { for (final String row : text.split(NL_S)) { indent(buffer, indent); buffer.append(row); nl(buffer); ; |
void | indent(final StringBuilder aSb, final String aIndentString) Changes the indentation of the string, a requested string is appended after every EOFs in the string. replaceString(aSb, "\n", "\n" + aIndentString); |
void | indent(final StringBuilder buf, int level) Add string for indentation to given level to buffer. while (level > 0) { buf.append(" "); --level; |
void | indent(final StringBuilder s, final int depth) indent for (int i = depth - 1; i >= 0; i--) s.append(" "); |
void | indent(final StringBuilder sb, final int indent) Appends to a given StringBuilder the given indents depending on the indent level. for (int i = 0; i < indent; i++) { sb.append(LOG_OUT_INDENT); |
String | indent(int count) Create an indentation of a given number of spaces. StringBuffer buffer = new StringBuffer(); for (int i = 0; i < count; i++) { buffer.append(" "); return buffer.toString(); |
String | indent(int i, String s) indent String spaces = repeat(i, ' '); return spaces + s.replace("\n", "\n" + spaces); |
String | indent(int indent) indent char[] chars = new char[indent * _INDENTSIZE]; for (int i = 0; i < chars.length; i++) { chars[i] = ' '; return new String(chars); |
String | indent(int indent) indent switch (indent) { case 8: return (" "); case 7: return (" "); case 6: return (" "); case 5: ... |
String | indent(int indent) indent if (LAST_indent == indent) return LAST_INDENT; if (indent == 0) return ""; if (indent == 1) return " "; if (indent == 2) return " "; ... |