Package org.apache.nutch.util
Class DomUtil
java.lang.Object
org.apache.nutch.util.DomUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementgetDom(InputStream is) Returns parsed dom tree or null if any errorstatic voidsaveDom(OutputStream os, DocumentFragment doc) Save dom intoOutputStreamstatic voidsaveDom(OutputStream os, Element e) Save dom intoOutputStream
-
Constructor Details
-
DomUtil
public DomUtil()
-
-
Method Details
-
getDom
Returns parsed dom tree or null if any error- Parameters:
is- XMLInputStream- Returns:
- A parsed DOM tree from the given
InputStream.
-
saveDom
Save dom intoOutputStream- Parameters:
os- Output DOM XML stream to save toe- A specific DOMElementto save
-
saveDom
Save dom intoOutputStream- Parameters:
os- Output DOM XML stream to save todoc- A specific DOMDocumentFragmentto save
-