Module org.htmlunit
Package org.htmlunit.html.serializer
Class HtmlSerializerNormalizedText.HtmlSerializerTextBuilder
java.lang.Object
org.htmlunit.html.serializer.HtmlSerializerNormalizedText.HtmlSerializerTextBuilder
- Enclosing class:
- HtmlSerializerNormalizedText
Helper to compose the text for the serializer based on several modes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumMode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend the provided content.voidAppend a block separator.voidAppend a line separator.voidAppend a tab.getText()
-
Constructor Details
-
HtmlSerializerTextBuilder
public HtmlSerializerTextBuilder()Ctor.
-
-
Method Details
-
append
public void append(String content, HtmlSerializerNormalizedText.HtmlSerializerTextBuilder.Mode mode) Append the provided content.- Parameters:
content- the content to addmode- theHtmlSerializerNormalizedText.HtmlSerializerTextBuilder.Mode
-
appendBlockSeparator
public void appendBlockSeparator()Append a block separator. -
appendNewLine
public void appendNewLine()Append a line separator. -
appendTab
public void appendTab()Append a tab. -
getText
- Returns:
- the constructed text.
-