|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.util.JaxpUtils
A set of generic JAXP utility methods.
Field Summary | |
static java.lang.ThreadLocal |
DOCUMENT_BUILDER_FACTORIES
Thread local that gives each thread its own DocumentBuilderFactory (since it is not thread-safe). |
static java.lang.ThreadLocal |
TRANSFORMER_FACTORIES
Thread local that gives each thread its own TransformerFactory (since it is not thread-safe). |
Constructor Summary | |
JaxpUtils()
|
Method Summary | |
static org.w3c.dom.Document |
loadDocument(org.xml.sax.InputSource in_source)
Loads a DOM Document from an InputSource. |
static org.w3c.dom.Document |
loadDocument(java.io.InputStream in_stream)
Method to load a DOM Document from an InputStream. |
static org.w3c.dom.Document |
toDocument(java.lang.String xmlString)
Converts a string containing an XML document into a Document . |
static java.lang.String |
toString(org.w3c.dom.Node node)
Converts an XML Node into a string containing the corresponding XML. |
static java.lang.String |
toString(org.w3c.dom.Node node,
boolean indentOutput)
Converts an XML Node into a string containing the corresponding XML, optionally pretty-printed with
indenting and newlines. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.ThreadLocal TRANSFORMER_FACTORIES
public static java.lang.ThreadLocal DOCUMENT_BUILDER_FACTORIES
Constructor Detail |
public JaxpUtils()
Method Detail |
public static org.w3c.dom.Document loadDocument(org.xml.sax.InputSource in_source) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
in_source
-
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static org.w3c.dom.Document loadDocument(java.io.InputStream in_stream) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
in_stream
-
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static org.w3c.dom.Document toDocument(java.lang.String xmlString) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
Document
.
xmlString
-
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static java.lang.String toString(org.w3c.dom.Node node) throws java.lang.Exception
Node
into a string containing the corresponding XML. ***NOTE*** requires an XSLT
implementation (ie - Xalan) in the classpath at runtime
node
- a DOM node
java.lang.Exception
public static java.lang.String toString(org.w3c.dom.Node node, boolean indentOutput) throws java.lang.Exception
Node
into a string containing the corresponding XML, optionally pretty-printed with
indenting and newlines. ***NOTE*** requires an XSLT implementation (ie - Xalan) in the classpath at runtime
node
- a DOM nodeindentOutput
- whether or not to indent the output XML
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |