|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ebmwebsourcing.wsstar.common.utils.WsstarCommonUtils
public final class WsstarCommonUtils
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
convertFromFiletoDocument(java.io.File file)
convert xml File loaded as File Java object to Document Java object |
static javax.xml.parsers.DocumentBuilder |
getDefaultDocumentBuilder()
DocumentBuilder as thread local, supporting XML namespaces. |
static javax.xml.transform.Transformer |
getDefaultTransformerFactoryThreadLocal()
|
static java.lang.String |
getEncoding(org.w3c.dom.Document xmlDocument)
Return the encoding of the document. |
static javax.xml.parsers.DocumentBuilder |
getJvmDocumentBuilder()
DocumentBuilder as thread local. |
static javax.xml.parsers.DocumentBuilder |
getNamespaceDocumentBuilder()
DocumentBuilder as thread local, supporting XML namespaces. |
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 |
| Method Detail |
|---|
public static org.w3c.dom.Document convertFromFiletoDocument(java.io.File file)
throws WsstarCommonException
File Java object to Document Java object
file - Java object to convert
WsstarCommonException
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 null
public static void prettify(org.w3c.dom.Node node,
java.io.OutputStream out,
java.lang.String encoding)
throws javax.xml.transform.TransformerException
node - out -
javax.xml.transform.TransformerException
java.lang.Exceptionpublic static java.lang.String getEncoding(org.w3c.dom.Document xmlDocument)
xmlDocument -
public static javax.xml.transform.Transformer getDefaultTransformerFactoryThreadLocal()
public static javax.xml.parsers.DocumentBuilder getJvmDocumentBuilder()
DocumentBuilder as thread local.
The document builder is the one provided by
JVM_DOCUMENT_BUILDER_THREAD_LOCAL.
public static javax.xml.parsers.DocumentBuilder getNamespaceDocumentBuilder()
DocumentBuilder as thread local, supporting XML namespaces.
The document builder is the one provided by
NAMESPACE_DOCUMENT_BUILDER_THREAD_LOCAL.
public static javax.xml.parsers.DocumentBuilder getDefaultDocumentBuilder()
DocumentBuilder as thread local, supporting XML namespaces.
The document builder is the one provided by
DEFAULT_DOCUMENT_BUILDER_THREAD_LOCAL.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||