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:
        `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 © 2015 The Apache Software Foundation