Module kivakit.core

Class IndentingStringBuilder

java.lang.Object
com.telenav.kivakit.core.string.IndentingStringBuilder

public class IndentingStringBuilder extends Object
Builds a string with indentation levels. The constructor IndentingStringBuilder(Style, Indentation) takes the number of spaces per indentation level. Strings can be added to the builder with appendLine(String) and appendLines(String). When indent() is called the indentation level is increased and when unindent() is called the indentation level is decreased. The indentation level can be retrieved with indentationLevel() and isIndented(), and it can be set with level(int).
Author:
jonathanl (shibo)