| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ContentBuilder | add(Content content)
Overrides jdk. Adds content to the existing content. |
| public ContentBuilder | add(CharSequence text)
Overrides jdk. Adds a string content to the existing content. |
| public int | charCount()
Overrides jdk. Returns the number of characters of plain text content in this object. |
| private void | |
| public List | |
| 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 Content | stripTags()
Overrides jdk. Returns the plain text of this content with HTML tags removed. |
| public boolean | write(Writer writer, String newline, boolean atNewline)
Implements abstract jdk. Writes content to a writer, using a given newline sequence, which should be
either |
| contents | back to summary |
|---|---|
| protected List<Content> contents | |
| ContentBuilder | back to summary |
|---|---|
| public ContentBuilder() | |
| ContentBuilder | back to summary |
|---|---|
| public ContentBuilder(Content... contents) | |
| add | back to summary |
|---|---|
| public ContentBuilder add(Content content) Overrides jdk. Doc from jdk. Adds content to the existing content. This is an optional operation.
| |
| add | back to summary |
|---|---|
| public ContentBuilder add(CharSequence text) Overrides jdk. Doc from jdk. Adds a string content to the existing content. This is an optional operation.
| |
| charCount | back to summary |
|---|---|
| public int charCount() Overrides jdk. Doc from jdk. Returns the number of characters of plain text content in this object.
| |
| ensureMutableContents | back to summary |
|---|---|
| private void ensureMutableContents() | |
| getContents | back to summary |
|---|---|
| public List Returns the contents of this builder. | |
| 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.
| |
| stripTags | back to summary |
|---|---|
| public Content stripTags() Overrides jdk. Doc from jdk. Returns the plain text of this content with HTML tags removed.
| |
| write | back to summary |
|---|---|
| public boolean write(Writer writer, 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
| |