List of utility methods to do String Indent Format
String | indent(int indent) Return some indentation. if (indent < 1 || indent > tabsLen) return ""; return tabs.substring(0, indent); |
String | indent(int indent, int tab, String string) indent StringBuffer result = new StringBuffer(); for (int i = 0; i < indent * tab; i++) { result.append(' '); result.append(string); return result.toString(); |
void | indent(int indent, StringBuffer sb) indent for (int i = 0; i < indent; ++i) { sb.append(" "); |
String | indent(int indentLevel) indent StringBuilder buffer = new StringBuilder(); for (int i = 0; i < indentLevel; i++) { buffer.append(" "); return buffer.toString(); |
String | indent(int level) Return a string that generates an indentation string (a sequence of spaces) for the given indentation level. StringBuffer indent = new StringBuffer(); int i; for (i = 0; i < level; i++) { indent.append(" "); return indent.toString(); |
String | indent(int level) indent if (level < 0) { return ""; } else if (level < INDENTS.length) { return INDENTS[level]; StringBuilder builder = new StringBuilder(); for (int i = 0; i < level; i++) { builder.append(" "); ... |
String | indent(int level) Accessor for the character sequence that indicates an indent. StringBuffer sb = new StringBuffer(); int i = level; while (i > 0) { sb.append('\t'); i--; return sb.toString(); |
void | indent(int level) indent for (int i = 0; i < level; i++) System.out.print(" "); |
void | indent(int n) indent printNChars(' ', n);
|
String | indent(int nb) generates a string of nb*" " (four spaces nb times), used for intentation in printAvp String str = ""; for (int i = 0; i < nb; i++) { str += " "; return str; |