Class JsoupToW3CDom
java.lang.Object
com.lucidworks.apollo.pipeline.util.JsoupToW3CDom
Helper class to transform a
Document to a org.w3c.dom.Document,
for integration with toolsets that use the W3C DOM.
This class is currently experimental, please provide feedback on utility and any problems experienced.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classImplements the conversion by walking the input. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSerialize a W3C document to a String.voidConverts a jsoup document into the provided W3C Document.fromJsoup(org.jsoup.nodes.Document in) Convert a jsoup Document to a W3C Document.
-
Field Details
-
factory
-
-
Constructor Details
-
JsoupToW3CDom
public JsoupToW3CDom()
-
-
Method Details
-
fromJsoup
Convert a jsoup Document to a W3C Document.- Parameters:
in- jsoup doc- Returns:
- w3c doc
-
convert
Converts a jsoup document into the provided W3C Document. If required, you can set options on the output document before converting.- Parameters:
in- jsoup docout- w3c doc- See Also:
-
W3CDom.fromJsoup(org.jsoup.nodes.Document)
-
asString
Serialize a W3C document to a String.- Parameters:
doc- Document- Returns:
- Document as string
-