org.apache.nutch.util
Class DomUtil

java.lang.Object
  extended by org.apache.nutch.util.DomUtil

public class DomUtil
extends Object


Constructor Summary
DomUtil()
           
 
Method Summary
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:
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