org.red5.io.utils
public class XMLUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log
Logger
|
Constructor and Description |
---|
XMLUtils() |
Modifier and Type | Method and Description |
---|---|
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
|
public static Document stringToDoc(String str) throws IOException
str
- String representation of XMLIOException
- I/O exceptionpublic static String docToString(Document dom)
dom
- DOM object to convertpublic static String docToString1(Document dom)
dom
- DOM object to convertpublic static String docToString2(Document domDoc) throws IOException
domDoc
- DOM objectIOException
- I/O exceptionCopyright © 2006-2012 The Red5 Project