\n.
Any special HTML characters will be escaped if and when the content is written out.
| Modifier and Type | Field and Description |
|---|---|
| private final StringBuilder |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TextBuilder(CharSequence
initial content for the object initialContent)Constructor to construct a TextBuilder object with some initial content. |
| Modifier and Type | Method and Description |
|---|---|
| public TextBuilder | add(CharSequence
string content to be added strContent)Overrides jdk. Adds content for the TextBuilder object. |
| public int | charCount()
Overrides jdk. Returns the number of characters of plain text content in this object. |
| public boolean | isEmpty()
Implements abstract jdk. Returns true if the content is empty. |
| public boolean | isPhrasingContent()
Overrides jdk. Returns true if the content is "phrasing content". |
| public String | toString()
Overrides jdk. Returns a string representation of the content. |
| public boolean | write(Writer out, String newline, boolean atNewline)
Implements abstract jdk. Writes content to a writer, using a given newline sequence, which should be
either |
| stringBuilder | back to summary |
|---|---|
| private final StringBuilder stringBuilder | |
| TextBuilder | back to summary |
|---|---|
| public TextBuilder() Constructor to construct an empty TextBuilder object. | |
| TextBuilder | back to summary |
|---|---|
| public TextBuilder(CharSequence initialContent) Constructor to construct a TextBuilder object with some initial content.
| |
| add | back to summary |
|---|---|
| public TextBuilder add(CharSequence strContent) Overrides jdk. Adds content for the TextBuilder object.
| |
| charCount | back to summary |
|---|---|
| public int charCount() Overrides jdk. Doc from jdk. Returns the number of characters of plain text content in this object.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract jdk. Doc from jdk. Returns true if the content is empty.
| |
| isPhrasingContent | back to summary |
|---|---|
| public boolean isPhrasingContent() Overrides jdk. Doc from jdk. Returns true if the content is "phrasing content". Phrasing content is content that may appear in a paragraph, such as text, or certain HTML elements.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides jdk. Doc from jdk. Returns a string representation of the content.
Newlines are represented by
| |
| write | back to summary |
|---|---|
| public boolean write(Writer out, String newline, boolean atNewline) throws IOException Implements abstract jdk. Doc from jdk. Writes content to a writer, using a given newline sequence, which should be
either
| |