# Class: com.pnfsoftware.jeb.util.format.TextBuilder

A text buffer builder supporting indentation. Can be seen as an alternative to [StringBuilder](StringBuilder) to easily create structured documents. 

 This class may be sub\-classed, in particular, refer to [XmlBuilder](XmlBuilder) for XML documents.

## Constructor: TextBuilder

Description: Create a builder with a default indentation size of 4 characters and an initial capacity of 16 characters.

## Constructor: TextBuilder
- parameter: `indentationSize`, type: `int`

Description: Create a builder with an initial capacity of 16 characters.

## Constructor: TextBuilder
- parameter: `indentationSize`, type: `int`
- parameter: `initialCapacity`, type: `int`

Description: Create a builder.

## Method: append
- parameter: `csq`, type: `java.lang.CharSequence`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `csq`, type: `java.lang.CharSequence`
- parameter: `start`, type: `int`
- parameter: `end`, type: `int`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `v`, type: `char`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `v`, type: `byte`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `v`, type: `short`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `v`, type: `int`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `v`, type: `long`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `v`, type: `float`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `v`, type: `double`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `o`, type: `java.lang.Object`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: append
- parameter: `format`, type: `java.lang.String`
- parameter: `args`, type: `java.lang.Object[]`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: appendLine
- parameter: `format`, type: `java.lang.String`
- parameter: `args`, type: `java.lang.Object[]`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: appendLine
- parameter: `noIndent`, type: `boolean`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: appendLine
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: clear


## Method: eol
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: indent
- parameter: `followedByEol`, type: `boolean`
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: indent
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: length
- return type: `int`


## Method: removeChar
- parameter: `pos`, type: `int`


## Method: removeChars
- parameter: `start`, type: `int`
- parameter: `end`, type: `int`


## Method: removeLastChar


## Method: removeLastLine


## Method: space
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: toString
- return type: `java.lang.String`


## Method: unindent
- return type: `com.pnfsoftware.jeb.util.format.TextBuilder`


## Method: updateIndentation
- parameter: `doIndent`, type: `boolean`


