[TOC]
org.apache.nutch.util
Class DomUtil
- java.lang.Object
- org.apache.nutch.util.DomUtil
public class DomUtil extends Object
Constructor Summary
Constructors Constructor and Description DomUtil()
Method Summary
Methods Modifier and Type Method and Description static Element
getDom(InputStream is)
Returns parsed dom tree or null if any error
static void
saveDom(OutputStream os,
Element e)
save dom into ouputstream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
-
DomUtil
public DomUtil()
Method Detail
-
getDom
public static Element getDom(InputStream is)
Returns parsed dom tree or null if any error
- Parameters:
- <code>is</code> -
- Returns:
- A parsed DOM tree from the given [<code>InputStream</code>](http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true).
-
saveDom
public static void saveDom(OutputStream os, Element e)
save dom into ouputstream
- Parameters:
- <code>os</code> -
- <code>e</code> -