protected static class HtmlSerializerVisibleText.HtmlSerializerTextBuilder extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
Mode.
|
Constructor and Description |
---|
HtmlSerializerTextBuilder()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(String content,
HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
Append the provided content.
|
void |
appendBlank()
Append a blank.
|
void |
appendBlockSeparator()
Append a block separator.
|
void |
appendBreak(HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
Append a break.
|
String |
getText() |
void |
ignoreHtmlBreaks()
Ignore the following html breaks in the content to be added.
|
void |
processHtmlBreaks()
Prozess the following html breaks in the content to be added.
|
void |
resetContentAdded()
Resets the contentAdded state to false.
|
void |
trimRight(HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
Remove all trailing whitespace from the end.
|
boolean |
wasContentAdded() |
public void append(String content, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
content
- the content to addmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
public void appendBlockSeparator()
public void appendBreak(HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
mode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
public void appendBlank()
public void trimRight(HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
mode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
public boolean wasContentAdded()
public void resetContentAdded()
public void ignoreHtmlBreaks()
public void processHtmlBreaks()
public String getText()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.