Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.red5.io.utils
Class XMLUtils

    java.lang.Object
      org.red5.io.utils.XMLUtils

    public class XMLUtils

extends Object

Misc XML utils

Author:
  The Red5 Project (red5@osflash.org), Luke Hubbard, Codegent Ltd (luke@codegent.com), Paul Gregoire (mondain@gmail.com)

Field Summary
`protected static Logger` | `log` Logger

Constructor Summary
`XMLUtils()`

Method Summary
`static String` | `docToString(Document dom)` Converts doc to String
`static String` | `docToString1(Document dom)` Convert a DOM tree into a String using Dom2Writer
`static String` | `docToString2(Document domDoc)` Convert a DOM tree into a String using transform
`static Document` | `stringToDoc(String str)` Converts string representation of XML into Document

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### log

    protected static Logger log

  Logger

Constructor Detail

### XMLUtils

    public XMLUtils()

Method Detail

### stringToDoc

    public static Document stringToDoc(String str)
                                throws IOException

  Converts string representation of XML into Document

  Parameters:
    `str` - String representation of XML
  Returns:
    DOM object
  Throws:
    `IOException` - I/O exception

### docToString

    public static String docToString(Document dom)

  Converts doc to String

  Parameters:
    `dom` - DOM object to convert
  Returns:
    XML as String

### docToString1

    public static String docToString1(Document dom)

  Convert a DOM tree into a String using Dom2Writer

  Parameters:
    `dom` - DOM object to convert
  Returns:
    XML as String

### docToString2

    public static String docToString2(Document domDoc)
                               throws IOException

  Convert a DOM tree into a String using transform

  Parameters:
    `domDoc` - DOM object
  Returns:
    XML as String
  Throws:
    `IOException` - I/O exception

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2010 The Red5 Project