org.apache.nutch.util

## Class DomUtil

- java.lang.Object
- - org.apache.nutch.util.DomUtil

-     public class DomUtil
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DomUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static org.w3c.dom.Element` | `getDom(java.io.InputStream is)` Returns parsed dom tree or null if any error
    `static void` | `saveDom(java.io.OutputStream os, org.w3c.dom.DocumentFragment doc)`
    `static void` | `saveDom(java.io.OutputStream os, org.w3c.dom.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 org.w3c.dom.Element getDom(java.io.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(java.io.OutputStream os,
                                     org.w3c.dom.Element e)

      save dom into ouputstream
      Parameters:
        `os` -
        `e` -

    - #### saveDom

          public static void saveDom(java.io.OutputStream os,
                                     org.w3c.dom.DocumentFragment doc)

Copyright © 2019 The Apache Software Foundation