Module org.htmlunit
Package org.htmlunit.html.serializer
Class HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder
java.lang.Object
org.htmlunit.html.serializer.HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder
- Enclosing class:
- HtmlSerializerInnerOuterText
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 line separator.getText()
-
Constructor Details
-
HtmlSerializerTextBuilder
public HtmlSerializerTextBuilder()Ctor.
-
-
Method Details
-
appendRequiredLineBreak
public void appendRequiredLineBreak()Append a line separator. -
append
public void append(String content, HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode mode) Append the provided content. see https://drafts.csswg.org/css-text-3/#white-space- Parameters:
content- the content to addmode- theHtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode
-
getText
- Returns:
- the constructed text.
-