Class HtmlSerializer
- java.lang.Object
-
- com.gargoylesoftware.htmlunit.html.HtmlSerializer
-
@Deprecated public class HtmlSerializer extends java.lang.ObjectDeprecated.as of version 2.48.0; useHtmlSerializerNormalizedTextinsteadUtility to handle conversion from HTML code to string.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classHtmlSerializer.HtmlSerializerTextBuilderDeprecated.
-
Constructor Summary
Constructors Constructor Description HtmlSerializer()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidappendApplet(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlApplet htmlApplet)Deprecated.ProcessHtmlApplet.protected voidappendBreak(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlBreak htmlBreak)Deprecated.ProcessHtmlBreak.protected voidappendChildren(HtmlSerializer.HtmlSerializerTextBuilder builder, DomNode node)Deprecated.Iterate over all Children and call appendNode() for every.protected voidappendComment(HtmlSerializer.HtmlSerializerTextBuilder builder, DomComment domComment)Deprecated.ProcessDomComment.protected voidappendDomNode(HtmlSerializer.HtmlSerializerTextBuilder builder, DomNode domNode)Deprecated.ProcessHtmlHiddenInput.protected voidappendHiddenInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlHiddenInput htmlHiddenInput)Deprecated.ProcessHtmlHiddenInput.protected voidappendInlineFrame(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlInlineFrame htmlInlineFrame)Deprecated.ProcessHtmlInlineFrame.protected voidappendInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlInput htmlInput)Deprecated.ProcessHtmlInput.protected voidappendNode(HtmlSerializer.HtmlSerializerTextBuilder builder, DomNode node)Deprecated.The core distribution method call the different appendXXX methods depending on the type of the given node.protected voidappendNoFrames(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlNoFrames htmlNoFrames)Deprecated.ProcessHtmlNoFrames.protected voidappendNoScript(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlNoScript htmlNoScript)Deprecated.ProcessHtmlNoScript.protected voidappendOrderedList(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlOrderedList htmlOrderedList)Deprecated.ProcessHtmlOrderedListtaking care to numerate it.protected voidappendPreformattedText(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlPreformattedText htmlPreformattedText)Deprecated.ProcessHtmlPreformattedText.protected voidappendResetInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlResetInput htmlResetInput)Deprecated.ProcessHtmlResetInput.protected voidappendScript(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlScript htmlScript)Deprecated.ProcessHtmlScript.protected voidappendSelect(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlSelect htmlSelect)Deprecated.ProcessHtmlSelect.protected voidappendStyle(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlStyle htmlStyle)Deprecated.ProcessHtmlStyle.protected voidappendSubmitInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlSubmitInput htmlSubmitInput)Deprecated.ProcessHtmlSubmitInput.protected voidappendTable(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlTable htmlTable)Deprecated.ProcessHtmlTable.protected voidappendTableRow(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlTableRow htmlTableRow)Deprecated.ProcessHtmlTableRow.protected booleanappendTableRows(HtmlSerializer.HtmlSerializerTextBuilder builder, java.util.List<HtmlTableRow> rows, boolean first, TableRowGroup skipParent1, TableRowGroup skipParent2)Deprecated.ProcessHtmlTableRow.protected voidappendText(HtmlSerializer.HtmlSerializerTextBuilder builder, DomText domText)Deprecated.ProcessDomText.protected voidappendTextArea(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlTextArea htmlTextArea)Deprecated.ProcessHtmlTextArea.protected voidappendTitle(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlTitle htmlTitle)Deprecated.ProcessHtmlTitle.protected voidappendUnorderedList(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlUnorderedList htmlUnorderedList)Deprecated.ProcessHtmlUnorderedList.java.lang.StringasText(DomNode node)Deprecated.Converts an HTML node to text.protected voiddoAppendCheckBoxInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlCheckBoxInput htmlCheckBoxInput)Deprecated.ProcessHtmlCheckBoxInput.protected voiddoAppendRadioButtonInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlRadioButtonInput htmlRadioButtonInput)Deprecated.ProcessHtmlRadioButtonInput.voidsetIgnoreMaskedElements(boolean ignore)Deprecated.Indicates if element that are not displayed due to style settings (visibility or display) should be visible in generated text.
-
-
-
Method Detail
-
asText
public java.lang.String asText(DomNode node)
Deprecated.Converts an HTML node to text.- Parameters:
node- a node- Returns:
- the text representation according to the setting of this serializer
-
appendChildren
protected void appendChildren(HtmlSerializer.HtmlSerializerTextBuilder builder, DomNode node)
Deprecated.Iterate over all Children and call appendNode() for every.- Parameters:
builder- the StringBuilder to add tonode- the node to process
-
appendNode
protected void appendNode(HtmlSerializer.HtmlSerializerTextBuilder builder, DomNode node)
Deprecated.The core distribution method call the different appendXXX methods depending on the type of the given node.- Parameters:
builder- the StringBuilder to add tonode- the node to process
-
appendDomNode
protected void appendDomNode(HtmlSerializer.HtmlSerializerTextBuilder builder, DomNode domNode)
Deprecated.ProcessHtmlHiddenInput.- Parameters:
builder- the StringBuilder to add todomNode- the target to process
-
appendHiddenInput
protected void appendHiddenInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlHiddenInput htmlHiddenInput)
Deprecated.ProcessHtmlHiddenInput.- Parameters:
builder- the StringBuilder to add tohtmlHiddenInput- the target to process
-
appendScript
protected void appendScript(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlScript htmlScript)
Deprecated.ProcessHtmlScript.- Parameters:
builder- the StringBuilder to add tohtmlScript- the target to process
-
appendStyle
protected void appendStyle(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlStyle htmlStyle)
Deprecated.ProcessHtmlStyle.- Parameters:
builder- the StringBuilder to add tohtmlStyle- the target to process
-
appendNoScript
protected void appendNoScript(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlNoScript htmlNoScript)
Deprecated.ProcessHtmlNoScript.- Parameters:
builder- the StringBuilder to add tohtmlNoScript- the target to process
-
appendNoFrames
protected void appendNoFrames(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlNoFrames htmlNoFrames)
Deprecated.ProcessHtmlNoFrames.- Parameters:
builder- the StringBuilder to add tohtmlNoFrames- the target to process
-
appendSubmitInput
protected void appendSubmitInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlSubmitInput htmlSubmitInput)
Deprecated.ProcessHtmlSubmitInput.- Parameters:
builder- the StringBuilder to add tohtmlSubmitInput- the target to process
-
appendInput
protected void appendInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlInput htmlInput)
Deprecated.ProcessHtmlInput.- Parameters:
builder- the StringBuilder to add tohtmlInput- the target to process
-
appendResetInput
protected void appendResetInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlResetInput htmlResetInput)
Deprecated.ProcessHtmlResetInput.- Parameters:
builder- the StringBuilder to add tohtmlResetInput- the target to process
-
appendUnorderedList
protected void appendUnorderedList(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlUnorderedList htmlUnorderedList)
Deprecated.ProcessHtmlUnorderedList.- Parameters:
builder- the StringBuilder to add tohtmlUnorderedList- the target to process
-
appendTitle
protected void appendTitle(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlTitle htmlTitle)
Deprecated.ProcessHtmlTitle.- Parameters:
builder- the StringBuilder to add tohtmlTitle- the target to process
-
appendTableRow
protected void appendTableRow(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlTableRow htmlTableRow)
Deprecated.ProcessHtmlTableRow.- Parameters:
builder- the StringBuilder to add tohtmlTableRow- the target to process
-
appendTextArea
protected void appendTextArea(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlTextArea htmlTextArea)
Deprecated.ProcessHtmlTextArea.- Parameters:
builder- the StringBuilder to add tohtmlTextArea- the target to process
-
appendTable
protected void appendTable(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlTable htmlTable)
Deprecated.ProcessHtmlTable.- Parameters:
builder- the StringBuilder to add tohtmlTable- the target to process
-
appendTableRows
protected boolean appendTableRows(HtmlSerializer.HtmlSerializerTextBuilder builder, java.util.List<HtmlTableRow> rows, boolean first, TableRowGroup skipParent1, TableRowGroup skipParent2)
Deprecated.ProcessHtmlTableRow.- Parameters:
builder- the StringBuilder to add torows- the rowsfirst- if true this is the first oneskipParent1- skip row if the parent is thisskipParent2- skip row if the parent is this- Returns:
- true if this was the first one
-
appendSelect
protected void appendSelect(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlSelect htmlSelect)
Deprecated.ProcessHtmlSelect.- Parameters:
builder- the StringBuilder to add tohtmlSelect- the target to process
-
appendOrderedList
protected void appendOrderedList(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlOrderedList htmlOrderedList)
Deprecated.ProcessHtmlOrderedListtaking care to numerate it.- Parameters:
builder- the StringBuilder to add tohtmlOrderedList- the OL element
-
appendPreformattedText
protected void appendPreformattedText(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlPreformattedText htmlPreformattedText)
Deprecated.ProcessHtmlPreformattedText.- Parameters:
builder- the StringBuilder to add tohtmlPreformattedText- the target to process
-
appendInlineFrame
protected void appendInlineFrame(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlInlineFrame htmlInlineFrame)
Deprecated.ProcessHtmlInlineFrame.- Parameters:
builder- the StringBuilder to add tohtmlInlineFrame- the target to process
-
appendText
protected void appendText(HtmlSerializer.HtmlSerializerTextBuilder builder, DomText domText)
Deprecated.ProcessDomText.- Parameters:
builder- the StringBuilder to add todomText- the target to process
-
appendComment
protected void appendComment(HtmlSerializer.HtmlSerializerTextBuilder builder, DomComment domComment)
Deprecated.ProcessDomComment.- Parameters:
builder- the StringBuilder to add todomComment- the target to process
-
appendApplet
protected void appendApplet(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlApplet htmlApplet)
Deprecated.ProcessHtmlApplet.- Parameters:
builder- the StringBuilder to add tohtmlApplet- the target to process
-
appendBreak
protected void appendBreak(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlBreak htmlBreak)
Deprecated.ProcessHtmlBreak.- Parameters:
builder- the StringBuilder to add tohtmlBreak- the target to process
-
doAppendCheckBoxInput
protected void doAppendCheckBoxInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlCheckBoxInput htmlCheckBoxInput)
Deprecated.ProcessHtmlCheckBoxInput.- Parameters:
builder- the StringBuilder to add tohtmlCheckBoxInput- the target to process
-
doAppendRadioButtonInput
protected void doAppendRadioButtonInput(HtmlSerializer.HtmlSerializerTextBuilder builder, HtmlRadioButtonInput htmlRadioButtonInput)
Deprecated.ProcessHtmlRadioButtonInput.- Parameters:
builder- the StringBuilder to add tohtmlRadioButtonInput- the target to process
-
setIgnoreMaskedElements
public void setIgnoreMaskedElements(boolean ignore)
Deprecated.Indicates if element that are not displayed due to style settings (visibility or display) should be visible in generated text.- Parameters:
ignore- indicates if masked elements should be ignored or not
-
-