org.apache.nutch.util
Class DomUtil
java.lang.Object
org.apache.nutch.util.DomUtil
public class DomUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomUtil
public DomUtil()
getDom
public static Element getDom(InputStream is)
- Returns parsed dom tree or null if any error
- Parameters:
is
-
- Returns:
- A parsed DOM tree from the given
InputStream
.
saveDom
public static void saveDom(OutputStream os,
Element e)
- save dom into ouputstream
- Parameters:
os
- e
-
Copyright © 2012 The Apache Software Foundation