|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.easywsdl.schema.util.XMLPrettyPrinter
public class XMLPrettyPrinter
Field Summary | |
---|---|
static java.lang.ThreadLocal<javax.xml.transform.TransformerFactory> |
transformerFactoryThreadLocal
A thread safe TransformerFactory, based on com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl |
Constructor Summary | |
---|---|
XMLPrettyPrinter()
|
Method Summary | |
---|---|
static java.lang.String |
getEncoding(org.w3c.dom.Document xmlDocument)
Return the encoding of the document. |
static void |
prettify(org.w3c.dom.Node node,
java.io.OutputStream out,
java.lang.String encoding)
Prettify the node into the output stream. |
static java.lang.String |
prettyPrint(org.w3c.dom.Document xmlDocument)
parse the xml Document and return it pretty-printed (with correct indentations, etc..). |
static java.lang.String |
prettyPrint(org.w3c.dom.Document xmlDocument,
java.lang.String encoding)
parse the xml String and return it pretty-printed (with correct indentations, etc..) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.ThreadLocal<javax.xml.transform.TransformerFactory> transformerFactoryThreadLocal
A thread safe TransformerFactory, based on com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
Constructor Detail |
---|
public XMLPrettyPrinter()
Method Detail |
---|
public static java.lang.String prettyPrint(org.w3c.dom.Document xmlDocument, java.lang.String encoding)
xmlDocument
- the xml document to pretty print. Must be non nullencoding
- the encoding to usepublic static java.lang.String prettyPrint(org.w3c.dom.Document xmlDocument)
xmlDocument
- the xml document to pretty print. Must be non nullpublic static void prettify(org.w3c.dom.Node node, java.io.OutputStream out, java.lang.String encoding) throws java.lang.Exception
node
- out
-
java.lang.Exception
public static java.lang.String getEncoding(org.w3c.dom.Document xmlDocument)
xmlDocument
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |